Skip to content

Commit aa0677e

Browse files
committed
Bypass commit status checks properly
For non-success cases, no commit statuses should be checked. Omitting the parameter causes all statuses to be checked - need to set an empty array to disable checking.
1 parent 7b34b98 commit aa0677e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/deploy-preview.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
-f ref=$ref \
6565
-f environment=$env \
6666
-F auto_merge=false \
67-
$([ $STATUS == 'success' ] && echo '-F required_contexts[]=netlify/{owner}/deploy-preview') \
67+
-F required_contexts[]$([ $STATUS == 'success' ] && echo '=netlify/{owner}/deploy-preview') \
6868
-f payload[deploy]=$DEPLOY \
6969
-f 'description=Deploy by Netlify')
7070

0 commit comments

Comments
 (0)