Add environment for gh cli

This commit is contained in:
Daniel A. Wozniak 2025-02-03 16:07:20 -07:00
parent 045bb73f0d
commit 76cb758f64

View file

@ -24,12 +24,18 @@ jobs:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: |
echo "$GITHUB_CONTEXT"
on-failure:
restart-failed-jobs:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'failure' && github.event.workflow_run.run_attempt < 5 }}
steps:
- run: |
- name: Restart failed jobs
env:
GH_REPO: ${{ github.repository }}
GH_TOKEN: ${{ github.token }}
run: |
gh run rerun ${{ github.event.workflow_run.id }} --failed
# Branch protection rules require this to run with exit code 0.
set-pipeline-exit-status:
name: Set the ${{ github.event.workflow.name }} Pipeline Exit Status
@ -37,7 +43,7 @@ jobs:
runs-on: ubuntu-latest
needs:
- show-context
- on-failure
- restart-failed-jobs
steps:
- shell: bash
run: