mirror of
https://github.com/saltstack/salt-bootstrap.git
synced 2025-04-16 09:40:21 +00:00
34 lines
917 B
YAML
34 lines
917 B
YAML
|
|
set-pipeline-exit-status:
|
|
# This step is just so we can make github require this step, to pass checks
|
|
# on a pull request instead of requiring all
|
|
name: Set the ${{{{ github.workflow }}}} Pipeline Exit Status
|
|
runs-on: ubuntu-latest
|
|
needs:
|
|
{needs}
|
|
if: always()
|
|
steps:
|
|
|
|
- name: Download Exit Status Files
|
|
if: always()
|
|
uses: actions/download-artifact@v4
|
|
with:
|
|
path: exitstatus/
|
|
pattern: exitstatus-*
|
|
merge-multiple: true
|
|
|
|
- name: Delete Exit Status Artifacts
|
|
if: always()
|
|
uses: geekyeggo/delete-artifact@v5
|
|
with:
|
|
pattern: exitstatus-*
|
|
failOnError: false
|
|
|
|
- name: Set Pipeline Exit Status
|
|
run: |
|
|
grep -RE 'failure|cancelled' exitstatus/ && exit 1 || exit 0
|
|
|
|
- name: Done
|
|
if: always()
|
|
run:
|
|
echo "All worflows finished"
|