We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ebf0d65 commit 030fa00Copy full SHA for 030fa00
1 file changed
.github/workflows/deploy-preview.yml
@@ -65,9 +65,9 @@ jobs:
65
-f ref=$ref \
66
-f environment=$env \
67
-F auto_merge=false \
68
- -F required_contexts[]=netlify/{owner}/deploy-preview) \
+ $([ $STATUS == 'success' ] && echo '-F required_contexts[]=netlify/{owner}/deploy-preview') \
69
-f payload[deploy]=$DEPLOY \
70
- -f 'description=Deploy by Netlify'
+ -f 'description=Deploy by Netlify')
71
72
# set status of the deployment
73
gh api -X POST repos/{owner}/{repo}/deployments/$deployment/statuses \
0 commit comments