Read ID via jq
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Nicolai Ort 2023-05-12 08:41:56 +02:00
parent 66409c298f
commit 5c7a232ffb
Signed by: niggl
GPG Key ID: 13AFA55AF62F269F

View File

@ -41,6 +41,7 @@ if [ "${PLUGIN_MERGE:-false}" = true ]; then
PLUGIN_DELETE_SOURCE=false;
fi
ID=$(echo $RES | jq '.number')
curl --request POST \
--url "https://$PLUGIN_DOMAIN/api/v1/repos/$DRONE_REPO/pulls/$ID/merge" \
--header 'Content-Type: application/json' \