Update token name with more capabilities
This commit is contained in:
parent
9093743ad6
commit
33da217604
2 changed files with 4 additions and 4 deletions
|
|
@ -105,7 +105,7 @@ jobs:
|
||||||
- name: Comment on PR with build failures
|
- name: Comment on PR with build failures
|
||||||
if: steps.build.outcome == 'failure'
|
if: steps.build.outcome == 'failure'
|
||||||
env:
|
env:
|
||||||
PR_TOKEN: ${{ secrets.PR_TOKEN }}
|
MINE_API_TOKEN: ${{ secrets.MINE_API_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
|
|
@ -145,7 +145,7 @@ jobs:
|
||||||
echo "Posting comment to PR #${{ forgejo.event.pull_request.number }} with payload:"
|
echo "Posting comment to PR #${{ forgejo.event.pull_request.number }} with payload:"
|
||||||
cat payload.json
|
cat payload.json
|
||||||
curl --fail-with-body -X POST \
|
curl --fail-with-body -X POST \
|
||||||
-H "Authorization: token $PR_TOKEN" \
|
-H "Authorization: token $MINE_API_TOKEN" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-d @payload.json \
|
-d @payload.json \
|
||||||
"${{ forgejo.api_url }}/repos/${{ forgejo.repository }}/issues/${{ forgejo.event.pull_request.number }}/comments"
|
"${{ forgejo.api_url }}/repos/${{ forgejo.repository }}/issues/${{ forgejo.event.pull_request.number }}/comments"
|
||||||
|
|
|
||||||
|
|
@ -53,11 +53,11 @@ jobs:
|
||||||
- name: Create Pull Request
|
- name: Create Pull Request
|
||||||
if: steps.changes.outputs.changed == 'true'
|
if: steps.changes.outputs.changed == 'true'
|
||||||
env:
|
env:
|
||||||
PR_TOKEN : ${{ secrets.PR_TOKEN }}
|
MINE_API_TOKEN : ${{ secrets.MINE_API_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
echo "Creating PR..."
|
echo "Creating PR..."
|
||||||
curl -X POST \
|
curl -X POST \
|
||||||
-H "Authorization: token $PR_TOKEN " \
|
-H "Authorization: token $MINE_API_TOKEN " \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-d '{
|
-d '{
|
||||||
"title": "chore: weekly flake update",
|
"title": "chore: weekly flake update",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue