File tree Expand file tree Collapse file tree 2 files changed +20
-63
lines changed Expand file tree Collapse file tree 2 files changed +20
-63
lines changed Original file line number Diff line number Diff line change 1414 needs : Spec
1515 uses : " puppetlabs/cat-github-actions/.github/workflows/module_acceptance.yml@main"
1616 secrets : " inherit"
17+
18+ on-failure-workflow-restarter-proxy :
19+ # (1) run this job after the "acceptance" job and...
20+ needs : [Acceptance, Spec]
21+ # (2) continue ONLY IF "acceptance" fails
22+ if : always() && needs.Acceptance.result == 'failure' || needs.Spec.result == 'failure'
23+ runs-on : ubuntu-latest
24+ steps :
25+ # (3) checkout this repository in order to "see" the following custom action
26+ - name : Checkout repository
27+ uses : actions/checkout@v4
28+
29+ # (4) "use" the custom action to retrigger the failed "acceptance job" above
30+ - name : Trigger reusable workflow
31+ uses : " puppetlabs/cat-github-actions/.github/actions/workflow-restarter-proxy@main"
32+ env :
33+ SOURCE_GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
34+ with :
35+ repository : ${{ github.repository }}
36+ run_id : ${{ github.run_id }}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments