mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Fix shellcheck
This commit is contained in:
parent
b3ae80492e
commit
045bb73f0d
1 changed files with 5 additions and 5 deletions
10
.github/workflows/workflow-finished.yml
vendored
10
.github/workflows/workflow-finished.yml
vendored
|
@ -1,4 +1,5 @@
|
|||
name: Workflow Finished
|
||||
run-name: Workflow ${{ github.event.workflow.name }} Finished
|
||||
|
||||
on:
|
||||
workflow_run:
|
||||
|
@ -23,14 +24,12 @@ jobs:
|
|||
GITHUB_CONTEXT: ${{ toJson(github) }}
|
||||
run: |
|
||||
echo "$GITHUB_CONTEXT"
|
||||
|
||||
on-failure:
|
||||
runs-on: ubuntu-latest
|
||||
if: ${{ github.event.workflow_run.conclusion == 'failure' && github.event.workflow_run.run_attempt < 5 }}
|
||||
steps:
|
||||
- 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
|
||||
|
@ -40,9 +39,10 @@ jobs:
|
|||
- show-context
|
||||
- on-failure
|
||||
steps:
|
||||
- run:
|
||||
- shell: bash
|
||||
run:
|
||||
if [ "${{ github.event.workflow_run.conclusion }}" != "success" ]; then
|
||||
exit 1
|
||||
exit 1;
|
||||
else
|
||||
exit 0
|
||||
exit 0;
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue