Compare commits
1 Commits
5c3447e606
...
26ad7a6657
| Author | SHA1 | Date | |
|---|---|---|---|
|
26ad7a6657
|
@@ -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 \
|
"${API_ENDPOINT}" | tee /tmp/pr_response.json \
|
||||||
| head -n 1
|
| head -n 1
|
||||||
)
|
)
|
||||||
|
|
||||||
echo ">> Gitea API Response Body ..."
|
echo ">> Gitea API Response Body ...
|
||||||
echo "----"
|
echo "----
|
||||||
echo "$(cat /tmp/pr_response)"
|
echo "$(cat /tmp/pr_response.json)"
|
||||||
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