Skip to content

Commit 030fa00

Browse files
committed
Only do commit status check for successful deploy
1 parent ebf0d65 commit 030fa00

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/deploy-preview.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ jobs:
6565
-f ref=$ref \
6666
-f environment=$env \
6767
-F auto_merge=false \
68-
-F required_contexts[]=netlify/{owner}/deploy-preview) \
68+
$([ $STATUS == 'success' ] && echo '-F required_contexts[]=netlify/{owner}/deploy-preview') \
6969
-f payload[deploy]=$DEPLOY \
70-
-f 'description=Deploy by Netlify'
70+
-f 'description=Deploy by Netlify')
7171
7272
# set status of the deployment
7373
gh api -X POST repos/{owner}/{repo}/deployments/$deployment/statuses \

0 commit comments

Comments
 (0)