change
All checks were successful
renovate / renovate (push) Successful in 3m36s

This commit is contained in:
2025-11-30 17:26:38 -06:00
parent 3e0cb21863
commit 9ead73777f

View File

@@ -138,7 +138,7 @@ 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: |
API_ENDPOINT="${GITEA_URL}/api/v1/repos/${{ gitea.repository_owner }}/${{ gitea.repository_name }}/pulls" API_ENDPOINT="${GITEA_URL}/api/v1/repos/${{ gitea.repository }}/pulls"
PAYLOAD=$( jq -n \ PAYLOAD=$( jq -n \
--arg head "${HEAD_BRANCH}" \ --arg head "${HEAD_BRANCH}" \
@@ -157,23 +157,28 @@ jobs:
curl -X POST \ curl -X POST \
--silent \ --silent \
--write-out '%{http_code}' \ --write-out '%{http_code}' \
--output pr_response \ --output response_body.json \
--dump-header response_headers.txt \
--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" 2> response_errors.txt
) )
echo ">> HTTP Status Code: $HTTP_STATUS" echo ">> HTTP Status Code: $HTTP_STATUS"
echo ">> Gitea API Response Body ..." echo ">> Response Output ..."
echo "----" echo "----"
cat pr_response cat response_body.json
echo "----"
cat response_headers.txt
echo "----"
cat response_errors.txt
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 pr_response.json | jq -r .html_url) PR_URL=$(cat response_body.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