You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
# Below are the steps to achieve parallel jobs running in github workflow to wait on a particular step
17
65
18
66
1. Name the step as needed. For example: "Wait for other pipelines"
19
-
2. Use the action "otto-de/github-actions-wait@v1" with the step name as input as shown below.
67
+
2. Use the action "otto-de/github-actions-wait@v1.0" with the step name as input as shown below.
20
68
The argument to the script should be the same as step name.
21
69
Accept the env defined in the sample shown below as it is, since the env set is used to make API calls to github
22
-
3. Place the wait step/s in the workflow in such places so that the following steps should not run in parallel by other jobs.
70
+
3. Place the wait step/s in the workflow in such a place so that the following steps should not run in parallel by other jobs.
23
71
An example of this wait step could be the terraform apply steps which use remote state lock feature. If 2 jobs try to use same remote state the 2nd job will fail.
24
72
4. How the script works is as below:
25
73
1. If the number of running jobs is 1, then there is no other job running, there will not be any waiting
@@ -30,15 +78,6 @@ Accept the env defined in the sample shown below as it is, since the env set is
30
78
1. If wait step is crossed for any of the newer jobs, then wait the current rerun job till the already running newer job to finish
31
79
2. If no wait step is crossed for any of the newer jobs, rerun will continue execution without waiting
0 commit comments