Git Action Workflows - Ability to invoke another step in the middle of a parent #120104
Unanswered
ppmgitrepo
asked this question in
Actions
Replies: 1 comment
-
Currently you can't do that. your best option is to just create one step, and use a script to do what you need to do. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Select Topic Area
Question
Body
The problem
In a Git Actions Workflow
I have 2 steps
Step1
Step2
Step1 processes many rows in an iterative While .. Loop
from within the loop, I want to have the ability to invoke Step2 , execute it and return back to Step1 to the line where it was invoked, and continue processing the rest of the lines in Step1 within the loop.
(because the code in Step2 just does some iterative task)
It is like a Function() invocation call within the loop.
The solution
It will make coding much easier when you have to do bulk processing.
You can split the processing into multiple steps that does smaller repetitive tasks and just invoke them in the main Step.
Beta Was this translation helpful? Give feedback.
All reactions