Compare commits
2 Commits
752ab9c23a
...
78cd5e2f52
| Author | SHA1 | Date | |
|---|---|---|---|
|
78cd5e2f52
|
|||
| 2b888046eb |
@@ -209,7 +209,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
cd ${MANIFEST_DIR}
|
cd ${MANIFEST_DIR}
|
||||||
|
|
||||||
API_ENDPOINT="${GITEA_URL}/api/v1/repos/${{ gitea.repository }}/pulls/${BASE_BRANCH}/${HEAD_BRANCH}"
|
API_ENDPOINT="${GITEA_URL}/api/v1/repos/${{ gitea.repository }}/pulls?base_branch=${BASE_BRANCH}&state=open&page=1"
|
||||||
|
|
||||||
echo ">> Checking if PR from branch ${HEAD_BRANCH} into ${BASE_BRANCH}"
|
echo ">> Checking if PR from branch ${HEAD_BRANCH} into ${BASE_BRANCH}"
|
||||||
echo ">> With Endpoint of:"
|
echo ">> With Endpoint of:"
|
||||||
@@ -242,6 +242,10 @@ jobs:
|
|||||||
echo "pull-request-exists=${PR_INDEX}" >> $GITEA_OUTPUT
|
echo "pull-request-exists=${PR_INDEX}" >> $GITEA_OUTPUT
|
||||||
echo "pull-request-index=true" >> $GITEA_OUTPUT
|
echo "pull-request-index=true" >> $GITEA_OUTPUT
|
||||||
|
|
||||||
|
if [ "$HTTP_STATUS" == "200" ] && [ "$(cat response_body.json | jq -r .state)" == "closed" ]; then
|
||||||
|
echo ">> Pull Request found, but was closed"
|
||||||
|
echo "pull-request-exists=false" >> $GITEA_OUTPUT
|
||||||
|
|
||||||
else
|
else
|
||||||
echo ">> Pull Request not found"
|
echo ">> Pull Request not found"
|
||||||
echo "pull-request-exists=false" >> $GITEA_OUTPUT
|
echo "pull-request-exists=false" >> $GITEA_OUTPUT
|
||||||
@@ -304,6 +308,9 @@ jobs:
|
|||||||
elif [ "$HTTP_STATUS" == "422" ]; then
|
elif [ "$HTTP_STATUS" == "422" ]; then
|
||||||
echo ">> Failed to create PR (HTTP 422: Unprocessable Entity), PR may already exist"
|
echo ">> Failed to create PR (HTTP 422: Unprocessable Entity), PR may already exist"
|
||||||
|
|
||||||
|
elif [ "$HTTP_STATUS" == "409" ]; then
|
||||||
|
echo ">> Failed to create PR (HTTP 409: Conflict), PR already exists"
|
||||||
|
|
||||||
else
|
else
|
||||||
echo ">> Failed to create PR, HTTP status code: $HTTP_STATUS"
|
echo ">> Failed to create PR, HTTP status code: $HTTP_STATUS"
|
||||||
exit 1
|
exit 1
|
||||||
|
|||||||
@@ -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