Skip to content

Commit cf83bfd

Browse files
alan-agius4clydin
authored andcommitted
ci: change shell to bash in fail_fast job
Currently fail_fast doesn't work in Windows as the shell is set to Powershell ``` #!powershell.exe -ExecutionPolicy Bypass curl -X POST --header "Content-Type: application/json" "https://circleci.com/api/v2/workflow/${CIRCLE_WORKFLOW_ID}/cancel?circle-token=${CIRCLE_TOKEN}" Invoke-WebRequest : A parameter cannot be found that matches parameter name 'X'. At line:1 char:6 + curl -X POST --header "Content-Type: application/json" "https://circl ... + ~~ + CategoryInfo : InvalidArgument: (:) [Invoke-WebRequest], ParameterBindingException + FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.PowerShell.Commands.InvokeWebRequestCommand Exited with code exit status 1 CircleCI received exit code 1 ``` (cherry picked from commit 08ce567)
1 parent b5f6d86 commit cf83bfd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.circleci/dynamic_config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ commands:
7777
steps:
7878
- run:
7979
name: 'Cancel workflow on fail'
80+
shell: bash
8081
when: on_fail
8182
command: |
8283
curl -X POST --header "Content-Type: application/json" "https://circleci.com/api/v2/workflow/${CIRCLE_WORKFLOW_ID}/cancel?circle-token=${CIRCLE_TOKEN}"

0 commit comments

Comments
 (0)