fix(ci): rename GITEA_TOKEN to GIT_TOKEN

GITEA_TOKEN is a reserved name in Gitea Actions

Refs #3
This commit is contained in:
2025-12-08 08:21:37 +00:00
parent 2f396fd882
commit 3acc0c3679

View File

@@ -132,7 +132,7 @@ jobs:
- name: Comment PR with Plan
if: gitea.event_name == 'pull_request'
env:
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
GIT_TOKEN: ${{ secrets.GIT_TOKEN }}
run: |
PLAN_OUTPUT=$(cat plan_output.txt | head -c 60000)
COMMENT_BODY=$(cat <<EOF
@@ -155,7 +155,7 @@ jobs:
# Post comment via Gitea API
curl -s -X POST \
-H "Authorization: token ${GITEA_TOKEN}" \
-H "Authorization: token ${GIT_TOKEN}" \
-H "Content-Type: application/json" \
-d "$(jq -n --arg body "$COMMENT_BODY" '{body: $body}')" \
"${{ gitea.server_url }}/api/v1/repos/${{ gitea.repository }}/issues/${{ gitea.event.pull_request.number }}/comments"