-
Notifications
You must be signed in to change notification settings - Fork 3.4k
34 lines (32 loc) · 1.03 KB
/
reusable-failed-workflow.yml
File metadata and controls
34 lines (32 loc) · 1.03 KB
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
name: Failed workflow dispatcher
on:
workflow_call:
inputs:
run_id:
required: true
type: string
ref:
required: true
type: string
jobs:
dispatch:
name: Dispatch failed-workflow
runs-on: ubuntu-24.04
permissions:
actions: write
steps:
- name: Dispatch workflow run
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
with:
retries: 2
retry-exempt-status-codes: 418
script: |
github.rest.actions.createWorkflowDispatch({
owner: context.repo.owner,
repo: context.repo.repo,
workflow_id: 'failed-workflow.yml',
ref: '${{ inputs.ref }}',
inputs: {
run_id: '${{ inputs.run_id }}',
}
});