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
Copy file name to clipboardExpand all lines: docs/workflow-restarter.md
+5-8Lines changed: 5 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -55,7 +55,7 @@ Now add something like the following `yaml` job at the end of your workflow, cha
55
55
For example, the following will trigger a restart if either the `acceptance` or the `unit` jobs preceeding it fail. A restart of the failing jobs will be attempted 3 times at which point if the failing jobs continue to fail, then the workflow will be marked as failed. If, however, at any point the `acceptance` and `unit` both pass fine then the restarted workflow will be marked as successful
56
56
57
57
```yaml
58
-
on-failure-workflow-restarter-proxy:
58
+
on-failure-workflow-restarter-proxy:
59
59
# (1) run this job after the "acceptance" job and...
60
60
needs: [acceptance, unit]
61
61
# (2) continue ONLY IF "acceptance" fails
@@ -64,19 +64,16 @@ For example, the following will trigger a restart if either the `acceptance` or
64
64
steps:
65
65
# (3) checkout this repository in order to "see" the following custom action
66
66
- name: Checkout repository
67
-
uses: actions/checkout@v2
67
+
uses: actions/checkout@v4
68
68
69
-
# (4) "use" the custom action to retrigger the failed "acceptance job" above
70
-
# NOTE: pass the SOURCE_GITHUB_TOKEN to the custom action because (a) it must have
71
-
# this to trigger the reusable workflow that restarts the failed job; and
72
-
# (b) custom actions do not have access to the calling workflow's secrets
0 commit comments