Fix shellcheck

This commit is contained in:
Daniel A. Wozniak 2025-02-03 15:40:48 -07:00
parent b3ae80492e
commit 045bb73f0d

View file

@ -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