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

Pass correct inputs

Oliver Günther34cf45b19133
diff --git a/.github/workflows/downstream-ci.yml b/.github/workflows/downstream-ci.yml
index 3a3419dc8df..d1c52e799e0 100644
--- a/.github/workflows/downstream-ci.yml
+++ b/.github/workflows/downstream-ci.yml
@@ -62,7 +62,9 @@ jobs:
exit 0
fi
+ PAYLOAD=$(printf '{"ref": "%s", "inputs": {"core_ref": "%s"}}' "$REF" "$CORE_REF")
+
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": "$REF", "inputs": { "core_ref" : "$CORE_REF" }}'
+ -d "$PAYLOAD"