Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/workflows/rerun-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: "Rerun CI"

on:
workflow_run:
Comment thread
contrueCT marked this conversation as resolved.
workflows:
- "HugeGraph-Server CI"
- "HugeGraph-Commons CI"
- "HugeGraph-PD & Store & Hstore CI"
- "Cluster Test CI"
types:
- completed

permissions:
actions: write
contents: read

jobs:
rerun-failed-jobs:
Comment thread
contrueCT marked this conversation as resolved.
if: >-
Comment thread
contrueCT marked this conversation as resolved.
Outdated
github.event.workflow_run.conclusion == 'failure' &&
fromJSON(github.event.workflow_run.run_attempt) < 2
Comment thread
contrueCT marked this conversation as resolved.
Outdated
runs-on: ubuntu-latest
steps:
- name: Show rerun target
run: |
echo "Workflow: ${{ github.event.workflow_run.name }}"
echo "Run ID: ${{ github.event.workflow_run.id }}"
echo "Run attempt: ${{ github.event.workflow_run.run_attempt }}"
echo "Conclusion: ${{ github.event.workflow_run.conclusion }}"

- name: Rerun failed jobs
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}
run: |
gh run rerun ${{ github.event.workflow_run.id }} --failed
Loading