From 49683ff973f97eab6a75360a88ebc6ab0eeee2af Mon Sep 17 00:00:00 2001 From: Thomas Ng Date: Wed, 1 Apr 2026 11:49:58 -0600 Subject: [PATCH] Adds --header 'Content-Type: application/json' to the 'trigger_build()' function that seems to now be required by bitrise --- gitrise.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/gitrise.sh b/gitrise.sh index 558b788..3a20169 100755 --- a/gitrise.sh +++ b/gitrise.sh @@ -196,6 +196,7 @@ function trigger_build() { if [ -z "${TESTING_ENABLED}" ]; then local command="curl --silent -X POST https://api.bitrise.io/v0.1/apps/$PROJECT_SLUG/builds \ --data '$(generate_build_payload)' \ + --header 'Content-Type: application/json' \ --header 'Accept: application/json' --header 'Authorization: $ACCESS_TOKEN'" response=$(eval "${command}") else