Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wangsen
MinerU
Commits
c8ab7913
Unverified
Commit
c8ab7913
authored
May 07, 2024
by
quyuan01
Committed by
GitHub
May 07, 2024
Browse files
Create rerun.yml
parent
788b73d5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
+23
-0
.github/workflows/rerun.yml
.github/workflows/rerun.yml
+23
-0
No files found.
.github/workflows/rerun.yml
0 → 100644
View file @
c8ab7913
name
:
check-status
on
:
workflow_run
:
workflows
:
[
ci
]
types
:
[
completed
]
jobs
:
on-failure
:
runs-on
:
pdf
permissions
:
actions
:
write
if
:
${{ (github.event.workflow_run.head_branch == 'master') && github.event.workflow_run.conclusion == 'failure' && github.event.workflow_run.run_attempt < 3 }}
steps
:
-
run
:
|
echo 'The triggering workflow failed'
sleep 600
curl -L \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ github.token }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/${{ github.repository }}/actions/runs/${{ github.event.workflow_run.id }}/rerun-failed-jobs
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment