Skip to content

Commit 89b1642

Browse files
authored
Update auto-merge.yml
1 parent 27d4504 commit 89b1642

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/auto-merge.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ jobs:
1212
id: check
1313
uses: actions/github-script@v6
1414
with:
15+
github-token: ${{ secrets.GITHUB_TOKEN }}
1516
script: |
1617
const prNumber = context.payload.pull_request.number;
1718
const { data: pr } = await github.rest.pulls.get({
@@ -42,6 +43,7 @@ jobs:
4243
if: steps.check.outputs.shouldMerge == 'true'
4344
uses: actions/github-script@v6
4445
with:
46+
github-token: ${{ secrets.GITHUB_TOKEN }}
4547
script: |
4648
const prNumber = context.payload.pull_request.number;
4749
const mergeResponse = await github.rest.pulls.merge({
@@ -51,5 +53,3 @@ jobs:
5153
merge_method: "squash"
5254
});
5355
core.info(`Merge response: ${JSON.stringify(mergeResponse.data)}`);
54-
env:
55-
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}

0 commit comments

Comments
 (0)