forked from databendlabs/databend
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (32 loc) · 844 Bytes
/
retry.yml
File metadata and controls
36 lines (32 loc) · 844 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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 });