Update token name with more capabilities

This commit is contained in:
pazpi 2026-01-09 09:57:03 +01:00
parent 9093743ad6
commit 33da217604
2 changed files with 4 additions and 4 deletions

View file

@ -105,7 +105,7 @@ jobs:
- name: Comment on PR with build failures
if: steps.build.outcome == 'failure'
env:
PR_TOKEN: ${{ secrets.PR_TOKEN }}
MINE_API_TOKEN: ${{ secrets.MINE_API_TOKEN }}
run: |
set -euo pipefail
@ -145,7 +145,7 @@ jobs:
echo "Posting comment to PR #${{ forgejo.event.pull_request.number }} with payload:"
cat payload.json
curl --fail-with-body -X POST \
-H "Authorization: token $PR_TOKEN" \
-H "Authorization: token $MINE_API_TOKEN" \
-H "Content-Type: application/json" \
-d @payload.json \
"${{ forgejo.api_url }}/repos/${{ forgejo.repository }}/issues/${{ forgejo.event.pull_request.number }}/comments"