Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Make curl errors easier to debug when they fail

Christophe Bliarde8e87575c6c4
diff --git a/.github/workflows/cd-storybook.yml b/.github/workflows/cd-storybook.yml
index 41f8948079c..e2404762ffc 100644
--- a/.github/workflows/cd-storybook.yml
+++ b/.github/workflows/cd-storybook.yml
@@ -20,7 +20,7 @@ jobs:
DS_CD_WORKFLOW_ID: build-docs.yml
DS_REPOSITORY: opf/design-system
run: |
- curl -i --fail -H"authorization: Bearer $TOKEN" \
+ curl -i --fail-with-body -H"authorization: Bearer $TOKEN" \
-XPOST -H"Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/$DS_REPOSITORY/actions/workflows/$DS_CD_WORKFLOW_ID/dispatches \
-d '{ "ref": "dev", "inputs": { "ref": "${{ github.ref }}" }}'
diff --git a/.github/workflows/continuous-delivery.yml b/.github/workflows/continuous-delivery.yml
index 03ffbd9203d..4a99998a635 100644
--- a/.github/workflows/continuous-delivery.yml
+++ b/.github/workflows/continuous-delivery.yml
@@ -20,7 +20,7 @@ jobs:
REPOSITORY: opf/saas-openproject
WORKFLOW_ID: continuous-delivery-saas.yml
run: |
- curl -i --fail -H"authorization: Bearer $TOKEN" \
+ curl -i --fail-with-body -H"authorization: Bearer $TOKEN" \
-XPOST -H"Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/$REPOSITORY/actions/workflows/$WORKFLOW_ID/dispatches \
-d '{"ref": "${{ github.ref }}"}'
@@ -32,7 +32,7 @@ jobs:
WORKFLOW_ID: ci.yml
CORE_REF: ${{ github.ref }}
run: |
- curl -i --fail -H"authorization: Bearer $TOKEN" \
+ curl -i --fail-with-body -H"authorization: Bearer $TOKEN" \
-XPOST -H"Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/$REPOSITORY/actions/workflows/$WORKFLOW_ID/dispatches \
-d '{"ref": "dev", "inputs": { "ref" : "$CORE_REF" }}'