mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Add environment for gh cli
This commit is contained in:
parent
15cd75bdef
commit
54b277a971
1 changed files with 12 additions and 5 deletions
17
.github/workflows/workflow-finished.yml
vendored
17
.github/workflows/workflow-finished.yml
vendored
|
@ -1,5 +1,5 @@
|
|||
name: Workflow Finished
|
||||
run-name: Workflow ${{ github.event.workflow.name }} Finished
|
||||
run-name: Workflow Finished ${{ github.event.workflow_run.display_title }} (${{ github.event.workflow_run.conclusion }})
|
||||
|
||||
on:
|
||||
workflow_run:
|
||||
|
@ -24,20 +24,27 @@ 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 }}
|
||||
needs:
|
||||
- show-context
|
||||
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
|
||||
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event.workflow_run.run_attempt >= 5 }}
|
||||
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event.workflow_run.run_attempt >= 5 }}
|
||||
runs-on: ubuntu-latest
|
||||
needs:
|
||||
- show-context
|
||||
- on-failure
|
||||
steps:
|
||||
- shell: bash
|
||||
run:
|
||||
|
|
Loading…
Add table
Reference in a new issue