Skip to content

Commit 895a64b

Browse files
committed
fix incorrect token, fix missing names in comment
1 parent 0ae89ca commit 895a64b

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/accept-size-increase.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,17 @@ jobs:
1616
pull-requests: write
1717
actions: read
1818
steps:
19+
- name: Generate GitHub App token
20+
id: app-token
21+
uses: actions/create-github-app-token@v2
22+
with:
23+
app-id: ${{ vars.GITFLOW_APP_ID }}
24+
private-key: ${{ secrets.GITFLOW_APP_PRIVATE_KEY }}
25+
1926
- uses: actions/checkout@v6
2027
with:
2128
ref: ${{ github.head_ref }}
22-
token: ${{ secrets.GITHUB_TOKEN }}
29+
token: ${{ steps.app-token.outputs.token }}
2330

2431
- uses: actions/setup-node@v6
2532
with:
@@ -79,9 +86,11 @@ jobs:
7986
if: steps.bump.outputs.summary != ''
8087
env:
8188
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
89+
SUMMARY: ${{ steps.bump.outputs.summary }}
8290
run: |
91+
echo "$SUMMARY" > /tmp/pr-comment.md
8392
gh pr comment "${{ github.event.pull_request.number }}" \
84-
--body "${{ steps.bump.outputs.summary }}"
93+
--body-file /tmp/pr-comment.md
8594
8695
- name: Remove label
8796
if: always()

0 commit comments

Comments
 (0)