rerun nightly tests on failure

This commit is contained in:
Erica Portnoy
2026-04-16 19:23:02 -07:00
parent 2320d1ea60
commit bdcd06b328
2 changed files with 30 additions and 0 deletions
+13
View File
@@ -23,3 +23,16 @@ jobs:
with:
dockerTag: nightly
snapReleaseChannel: edge
re-run:
needs:
- test_and_package_stage
- changelog_stage
- nightly_deploy_stage
if: failure() && fromJSON(github.run_attempt) < 3
runs-on: ubuntu-latest
steps:
- env:
GH_REPO: ${{ github.repository }}
GH_TOKEN: ${{ github.token }}
GH_DEBUG: api
run: gh workflow run rerun.yml -F run_id=${{ github.run_id }}
+17
View File
@@ -0,0 +1,17 @@
on:
workflow_dispatch:
inputs:
run_id:
required: true
jobs:
rerun:
runs-on: ubuntu-latest
steps:
- name: rerun ${{ inputs.run_id }}
env:
GH_REPO: ${{ github.repository }}
GH_TOKEN: ${{ github.token }}
GH_DEBUG: api
run: |
gh run watch ${{ inputs.run_id }} > /dev/null 2>&1
gh run rerun ${{ inputs.run_id }} --failed