Skip to content

Commit 8703f62

Browse files
(CAT-2092) - Add workflow restarter
1 parent 29f141c commit 8703f62

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

.github/workflows/ci.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,3 +77,18 @@ jobs:
7777
- name: Run tests
7878
run: |
7979
bundle exec rake spec
80+
81+
on-failure-workflow-restarter-proxy:
82+
needs: [linux_tests, windows_tests]
83+
runs-on: ubuntu-latest
84+
steps:
85+
- name: Checkout repository
86+
uses: actions/checkout@v4
87+
88+
- name: Trigger reusable workflow
89+
uses: "puppetlabs/cat-github-actions/.github/actions/workflow-restarter-proxy@main"
90+
env:
91+
SOURCE_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
92+
with:
93+
repository: ${{ github.repository }}
94+
run_id: ${{ github.run_id }}

.github/workflows/nightly.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,20 @@ jobs:
7575
- name: Run tests
7676
run: |
7777
bundle exec rake spec
78+
79+
on-failure-workflow-restarter-proxy:
80+
needs: [linux_tests, windows_tests]
81+
if: always() && needs.linux_tests.result == 'failure' || needs.windows_tests.result == 'failure'
82+
runs-on: ubuntu-latest
83+
steps:
84+
- name: Checkout repository
85+
uses: actions/checkout@v4
86+
87+
- name: Trigger reusable workflow
88+
uses: "puppetlabs/cat-github-actions/.github/actions/workflow-restarter-proxy@main"
89+
env:
90+
SOURCE_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
91+
with:
92+
repository: ${{ github.repository }}
93+
run_id: ${{ github.run_id }}
94+

0 commit comments

Comments
 (0)