Skip to content

Commit 3e45d06

Browse files
authored
Update auto-rerun-helper.yml
1 parent 9d96476 commit 3e45d06

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed
Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,21 @@
1-
name: Auto-re-run Random Test (helper)
1+
name: Auto-rerun Failed Builds (helper)
22

33
on:
44
workflow_dispatch:
55
workflow_run:
6-
workflows: ["Retry Test | Random Failure Test Workflow"]
6+
workflows:
7+
- workflow-build-alpine
8+
- workflow-build-debian
9+
- workflow-build-development
10+
- workflow-build-test
11+
- workflow-build-retrytest
12+
713
types: [completed]
814

15+
concurrency:
16+
group: "${{ github.event.workflow_run.id }}-helper"
17+
cancel-in-progress: true
18+
919
permissions:
1020
actions: write # needed for rerun
1121
contents: read
@@ -14,13 +24,20 @@ jobs:
1424
rerun-failed:
1525
if: >
1626
github.event.workflow_run.conclusion == 'failure' &&
17-
github.event.workflow_run.run_attempt < 3
27+
github.event.workflow_run.attempt < 3
1828
runs-on: ubuntu-24.04
1929

2030
steps:
2131
- name: Re-run only failed jobs
2232
env:
2333
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2434
run: |
35+
echo "🔄 Queuing attempt $((${{ github.event.workflow_run.attempt }} + 1)) for workflow '${{ github.event.workflow_run.name }}'"
36+
echo "📊 Failed run ID: ${{ github.event.workflow_run.id }}"
37+
echo "📅 Original run started: ${{ github.event.workflow_run.created_at }}"
38+
echo "🎯 Retrying only failed jobs..."
39+
2540
gh run rerun ${{ github.event.workflow_run.id }} --failed \
2641
--repo ${{ github.repository }}
42+
43+
echo "✅ Retry queued successfully!"

0 commit comments

Comments
 (0)