Skip to content

Rerun flaky PR jobs #2899

Rerun flaky PR jobs

Rerun flaky PR jobs #2899

name: Rerun flaky PR jobs
on:
workflow_run:
workflows:
- "Build pull request"
- "CodeQL"
- "PR build Servlet images for smoke tests"
types:
- completed
concurrency:
group: rerun-flaky-pr-jobs
cancel-in-progress: false
permissions:
contents: read
jobs:
rerun-failed-jobs:
permissions:
actions: write
contents: read
runs-on: ubuntu-latest
timeout-minutes: 10
if: github.event.workflow_run.conclusion == 'failure'
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Rerun eligible failed jobs
env:
GH_TOKEN: ${{ github.token }}
WORKFLOW_RUN_ID: ${{ github.event.workflow_run.id }}
run: python .github/scripts/rerun-failed-workflow-jobs.py