Compare commits
2 Commits
e5333088fc
...
9bef1f3e81
| Author | SHA1 | Date | |
|---|---|---|---|
|
9bef1f3e81
|
|||
| 3e0cb21863 |
@@ -148,27 +148,32 @@ jobs:
|
|||||||
'{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 Endpoint of:"
|
||||||
|
echo "$API_ENDPOINT"
|
||||||
echo ">> With Payload of:"
|
echo ">> With Payload of:"
|
||||||
echo "$PAYLOAD"
|
echo "$PAYLOAD"
|
||||||
|
|
||||||
#HTTP_STATUS=$(
|
HTTP_STATUS=$(
|
||||||
curl -X POST \
|
curl -X POST \
|
||||||
--output /tmp/pr_response \
|
--silent \
|
||||||
|
--write-out '%{http_code}' \
|
||||||
|
--output 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 ">> HTTP Status Code: $HTTP_STATUS"
|
||||||
echo ">> Gitea API Response Body ..."
|
echo ">> Gitea API Response Body ..."
|
||||||
echo "----"
|
echo "----"
|
||||||
cat /tmp/pr_response
|
cat pr_response
|
||||||
echo "----"
|
echo "----"
|
||||||
|
|
||||||
if [ "$HTTP_STATUS" == "201" ]; then
|
if [ "$HTTP_STATUS" == "201" ]; then
|
||||||
echo ">> Pull Request created successfully!"
|
echo ">> Pull Request created successfully!"
|
||||||
|
|
||||||
PR_URL=$(cat /tmp/pr_response.json | jq -r .html_url)
|
PR_URL=$(cat pr_response.json | jq -r .html_url)
|
||||||
echo "pull-request-url=${PR_URL}" >> $GITEA_OUTPUT
|
echo "pull-request-url=${PR_URL}" >> $GITEA_OUTPUT
|
||||||
echo "pull-request-operation=created" >> $GITEA_OUTPUT
|
echo "pull-request-operation=created" >> $GITEA_OUTPUT
|
||||||
|
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ shelly-plug:
|
|||||||
main:
|
main:
|
||||||
image:
|
image:
|
||||||
repository: php
|
repository: php
|
||||||
tag: 8.4.15-apache-bookworm
|
tag: 8.5.0-apache-bookworm
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
env:
|
env:
|
||||||
- name: SHELLY_HOSTNAME
|
- name: SHELLY_HOSTNAME
|
||||||
|
|||||||
Reference in New Issue
Block a user