This commit is contained in:
@@ -6,10 +6,16 @@ function run() {
|
||||
core.notice('Hello from a custom JS Action');
|
||||
|
||||
// Get Action Input Values
|
||||
|
||||
var input_iterations = parseInt(core.getInput('iterations'));
|
||||
|
||||
// Process
|
||||
|
||||
var currentNumber = 0;
|
||||
var step = 1;
|
||||
for (var i = 0; i < input_iterations; i++) {
|
||||
core.notice(currentNumber);
|
||||
currentNumber = currentNumber + step;
|
||||
step = currentNumber;
|
||||
}
|
||||
|
||||
// Produce Action Output
|
||||
|
||||
|
||||
Reference in New Issue
Block a user