Skip to content

Commit be25ecd

Browse files
committed
cicd(contacts): make pipeline succeed, even if release is not approved
1 parent 7dc4621 commit be25ecd

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/contacts-ci-cd.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,15 +75,19 @@ jobs:
7575
if: github.ref == 'refs/heads/main'
7676
needs: npm-publish-contacts-snapshot
7777
runs-on: ubuntu-latest
78+
continue-on-error: true
7879
environment: release-approval
80+
outputs:
81+
approved: ${{ steps.approval.outputs.approved }}
7982
steps:
8083
- name: Approve release
81-
run:
82-
echo "Release approved, proceeding with npm publish and production
83-
deployment"
84+
id: approval
85+
run: |
86+
echo "approved=true" >> $GITHUB_OUTPUT
87+
echo "Release approved, proceeding"
8488
8589
npm-release-contacts:
86-
if: github.ref == 'refs/heads/main'
90+
if: github.ref == 'refs/heads/main' && needs.approve-release.outputs.approved == 'true'
8791
needs: [ build, npm-publish-contacts-snapshot, approve-release ]
8892
runs-on: ubuntu-latest
8993
outputs:

0 commit comments

Comments
 (0)