This commit is contained in:
@@ -154,11 +154,13 @@ jobs:
|
|||||||
|
|
||||||
HTTP_STATUS=$(
|
HTTP_STATUS=$(
|
||||||
curl -X POST \
|
curl -X POST \
|
||||||
|
--write-out '%{http_code}' \
|
||||||
|
--silent \
|
||||||
|
--output /tmp/pr_response \
|
||||||
-H "Authorization: token ${GITEA_TOKEN}" \
|
-H "Authorization: token ${GITEA_TOKEN}" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
--data "${PAYLOAD}" \
|
--data "${PAYLOAD}" \
|
||||||
"${API_ENDPOINT}" | tee /tmp/pr_response \
|
"${API_ENDPOINT}"
|
||||||
| head -n 1
|
|
||||||
)
|
)
|
||||||
|
|
||||||
echo ">> Gitea API Response Body ..."
|
echo ">> Gitea API Response Body ..."
|
||||||
|
|||||||
Reference in New Issue
Block a user