Skip to content

Commit 59792f9

Browse files
committed
Fail curl command if return code is not OK
1 parent fd9c615 commit 59792f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/test-initdemo.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ jobs:
1717
run: ./initdemo.sh
1818
- name: Test projects exist
1919
run: |
20-
curl -H "X-Octopus-ApiKey: API-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" http://localhost:18080/api/Spaces-1/Projects/hello-world
20+
curl --fail -H "X-Octopus-ApiKey: API-AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" http://localhost:18080/api/Spaces-1/Projects/hello-world
2121
if [[ $? != "0" ]]; then exit 1; fi

0 commit comments

Comments
 (0)