Skip to content

Commit e11aeb2

Browse files
authored
Fix syntax for rerunning failed jobs in workflow
1 parent 44fd3b3 commit e11aeb2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/auto-retry.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ on:
99
- "2. Create Tag & Build/Deploy to Test"
1010
- "3. Create Tag & Build/Deploy to UAT"
1111
types: [completed]
12-
1312
jobs:
1413
retry-failed-job:
1514
runs-on: ubuntu-latest
@@ -20,6 +19,7 @@ jobs:
2019
- name: Re-run failed jobs
2120
env:
2221
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22+
GH_REPO: ${{ github.repository }}
2323
RUN_ID: ${{ github.event.workflow_run.id }}
2424
run: |
25-
gh run rerun $RUN_ID --failed
25+
gh run rerun "$RUN_ID" --failed

0 commit comments

Comments
 (0)