1 Commits

Author SHA1 Message Date
2d2df88bdf Update php Docker tag to v8.5.0
All checks were successful
renovate/stability-days Updates have met minimum release age requirement
lint-test-helm / helm-lint (pull_request) Successful in 17s
2025-11-30 22:28:23 +00:00

View File

@@ -138,35 +138,34 @@ jobs:
GITEA_URL: ${{ secrets.REPO_URL }} GITEA_URL: ${{ secrets.REPO_URL }}
HEAD_BRANCH: ${{ steps.commit-push.outputs.HEAD_BRANCH }} HEAD_BRANCH: ${{ steps.commit-push.outputs.HEAD_BRANCH }}
run: | run: |
apt install jq
API_ENDPOINT="${GITEA_URL}/api/v1/repos/${{ gitea.repository_owner }}/${{ gitea.repository_name }}/pulls" API_ENDPOINT="${GITEA_URL}/api/v1/repos/${{ gitea.repository_owner }}/${{ gitea.repository_name }}/pulls"
PAYLOAD=$( jq -n \ PAYLOAD=$(cat <<-EOF
--arg head "${HEAD_BRANCH}" \ {
--arg base "${BASE_BRANCH}" \ "head": "${HEAD_BRANCH}",
--arg title "Automated Manifest Update: $(date +%F)" \ "base": "${BASE_BRANCH}",
--arg body "This PR contains newly rendered Kubernetes manifests automatically generated by the CI workflow" \ "title": "Automated Manifest Update: $(date +%F)",
'{head: $head, base: $base, title: $title}, body: $body' ) "body": "This PR contains newly rendered Kubernetes manifests automatically generated by the CI workflow.",
}
EOF
)
echo ">> Creating PR from branch: ${HEAD_BRANCH} into ${BASE_BRANCH}" echo ">> Creating PR from branch: ${HEAD_BRANCH} into ${BASE_BRANCH}"
echo ">> With Payload of:"
echo "$PAYLOAD"
HTTP_STATUS=$( HTTP_STATUS=$(
curl -X POST \ curl -X POST \
--silent \
--write-out '%{http_code}' \ --write-out '%{http_code}' \
--silent \
--output /tmp/pr_response \ --output /tmp/pr_response \
--data "${PAYLOAD}" \
-H "Authorization: token ${GITEA_TOKEN}" \ -H "Authorization: token ${GITEA_TOKEN}" \
-H "Content-Type: application/json" \ -H "Content-Type: application/json" \
--data "${PAYLOAD}" \
"${API_ENDPOINT}" "${API_ENDPOINT}"
) )
echo ">> Gitea API Response Body ..." echo ">> Gitea API Response Body ..."
echo "----" echo "----"
cat /tmp/pr_response echo "$(cat /tmp/pr_response)"
echo "----" echo "----"
if [ "$HTTP_STATUS" == "201" ]; then if [ "$HTTP_STATUS" == "201" ]; then