mirror of
https://github.com/certbot/certbot.git
synced 2026-07-28 08:05:31 +02:00
rerun nightly tests on failure
This commit is contained in:
@@ -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 }}
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user