This commit is contained in:
@@ -157,14 +157,14 @@ jobs:
|
|||||||
-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.json \
|
"${API_ENDPOINT}" | tee /tmp/pr_response \
|
||||||
| head -n 1
|
| head -n 1
|
||||||
)
|
)
|
||||||
|
|
||||||
echo ">> Gitea API Response Body ...
|
echo ">> Gitea API Response Body ..."
|
||||||
echo "----
|
echo "----"
|
||||||
echo "$(cat /tmp/pr_response.json)"
|
echo "$(cat /tmp/pr_response)"
|
||||||
echo "----
|
echo "----"
|
||||||
|
|
||||||
if [ "$HTTP_STATUS" == "201" ]; then
|
if [ "$HTTP_STATUS" == "201" ]; then
|
||||||
echo ">> Pull Request created successfully!"
|
echo ">> Pull Request created successfully!"
|
||||||
|
|||||||
Reference in New Issue
Block a user