Back to not nesting the set pipeline exitcode job

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
Pedro Algarvio 2023-01-27 03:51:59 +00:00 committed by Megan Wilhite
parent fe15f40e98
commit d8f39a4b42
2 changed files with 19 additions and 29 deletions

View file

@ -686,6 +686,7 @@ jobs:
# on a pull request instead of requiring all
name: Set the ${{ github.workflow }} Pipeline Exit Status
if: always()
runs-on: ubuntu-latest
needs:
- pre-commit
- docs
@ -716,4 +717,21 @@ jobs:
- windows-2019
- windows-2022
- macos-12
uses: ./.github/workflows/set-workflow-conclusion.yml
steps:
- name: Get workflow information
id: get-workflow-info
uses: technote-space/workflow-conclusion-action@v3
- name: Set Pipeline Exit Status
shell: bash
run: |
if [ "${{ steps.get-workflow-info.outputs.conclusion }}" != "success" ]; then
exit 1
else
exit 0
fi
- name: Done
if: always()
run:
echo "All worflows finished"

View file

@ -1,28 +0,0 @@
name: Set Workflow Conclusion
on:
workflow_call: {}
jobs:
set-workflow-conclusion:
name: Set the Pipeline Exit Status
runs-on: ubuntu-latest
if: always()
steps:
- name: Get workflow information
id: get-workflow-info
uses: technote-space/workflow-conclusion-action@v3
- name: Set Pipeline Exit Status
shell: bash
run: |
if [ "${{ steps.get-workflow-info.outputs.conclusion }}" != "success" ]; then
exit 1
else
exit 0
fi
- name: Done
if: always()
run:
echo "All worflows finished"