This commit is contained in:
@@ -144,23 +144,22 @@ jobs:
|
|||||||
--arg head "${HEAD_BRANCH}" \
|
--arg head "${HEAD_BRANCH}" \
|
||||||
--arg base "${BASE_BRANCH}" \
|
--arg base "${BASE_BRANCH}" \
|
||||||
--arg title "Automated Manifest Update: $(date +%F)" \
|
--arg title "Automated Manifest Update: $(date +%F)" \
|
||||||
--arg body "This PR contains newly rendered Kubernetes manifests automatically generated by the CI workflow" \
|
--arg body "This PR contains newly rendered Kubernetes manifests automatically generated by the CI workflow." \
|
||||||
'{head: $head, base: $base, title: $title, body: $body'} )
|
'{head: $head, base: $base, title: $title, body: $body'} )
|
||||||
|
|
||||||
echo ">> Creating PR from branch: ${HEAD_BRANCH} into ${BASE_BRANCH}"
|
echo ">> Creating PR from branch ${HEAD_BRANCH} into ${BASE_BRANCH}"
|
||||||
echo ">> With Payload of:"
|
echo ">> With Payload of:"
|
||||||
echo "$PAYLOAD"
|
echo "$PAYLOAD"
|
||||||
|
|
||||||
HTTP_STATUS=$(
|
#HTTP_STATUS=$(
|
||||||
curl -X POST \
|
curl -X POST \
|
||||||
--silent \
|
--silent \
|
||||||
--write-out '%{http_code}' \
|
|
||||||
--output /tmp/pr_response \
|
|
||||||
--data "${PAYLOAD}" \
|
--data "${PAYLOAD}" \
|
||||||
-H "Authorization: token ${GITEA_TOKEN}" \
|
-H "Authorization: token ${GITEA_TOKEN}" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
"${API_ENDPOINT}"
|
"${API_ENDPOINT}"
|
||||||
)
|
#)
|
||||||
|
|
||||||
echo ">> Gitea API Response Body ..."
|
echo ">> Gitea API Response Body ..."
|
||||||
echo "----"
|
echo "----"
|
||||||
|
|||||||
Reference in New Issue
Block a user