Skip to content

Commit

Permalink
Merge pull request #111 from Nemo157/fix-workflow
Browse files Browse the repository at this point in the history
Actually detect success of workflow
  • Loading branch information
Nemo157 authored May 23, 2023
2 parents 9147711 + fc6a9ca commit 0edad16
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,14 @@ jobs:
success:
runs-on: ubuntu-latest
needs: [pull_request]
if: ${{ always() }}
steps:
- run: true
- if: ${{ contains(needs.*.result, 'failure') }}
run: exit 1
- if: ${{ contains(needs.*.result, 'cancelled') }}
run: exit 1
- if: ${{ contains(needs.*.result, 'skipped') }}
run: exit 1

on:
pull_request:
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,14 @@ jobs:
success:
runs-on: ubuntu-latest
needs: [pull_request, staging]
if: ${{ always() }}
steps:
- run: true
- if: ${{ contains(needs.*.result, 'failure') }}
run: exit 1
- if: ${{ contains(needs.*.result, 'cancelled') }}
run: exit 1
- if: ${{ contains(needs.*.result, 'skipped') }}
run: exit 1

on:
merge_group:
Expand Down

0 comments on commit 0edad16

Please sign in to comment.