Retry Failed Workflow #4223
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Retry Failed Workflow | |
on: | |
workflow_run: | |
workflows: | |
- Dev | |
- Main | |
- Cloud | |
- Release | |
types: | |
- completed | |
permissions: | |
pull-requests: write | |
issues: write | |
actions: write | |
contents: read | |
jobs: | |
retry: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Retry failed jobs | |
uses: actions/github-script@v7 | |
env: | |
WORKFLOW_RUN_ID: ${{ github.event.workflow_run.id }} | |
WORKFLOW_RUN_URL: ${{ github.event.workflow_run.html_url }} | |
CONCLUSION: ${{ github.event.workflow_run.conclusion }} | |
with: | |
github-token: ${{ github.token }} | |
script: | | |
const script = require('./.github/scripts/retry_failed_jobs.js'); | |
await script({ github, context, core }); |