Skip to content

Commit f2cba09

Browse files
ci: add success job for branch protection
1 parent e893f93 commit f2cba09

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/build-and-deploy.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,17 @@ jobs:
6969
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7070
run: |
7171
npm install
72-
npx semantic-release
72+
npx semantic-release
73+
success:
74+
runs-on: ubuntu-22.04
75+
needs:
76+
- build
77+
- release
78+
if: >-
79+
always() && (
80+
contains(join(needs.*.result, ','), 'failure')
81+
|| !contains(join(needs.*.result, ','), 'cancelled')
82+
)
83+
steps:
84+
- name: Verify that there were no failures
85+
run: ${{ !contains(join(needs.*.result, ','), 'failure') }}

0 commit comments

Comments
 (0)