Skip to content

Commit f0192f0

Browse files
committed
Update actions/github-script to v7
1 parent eacc0e3 commit f0192f0

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed
Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,27 @@
11
name: Respond on New Pick Request
2+
23
on:
34
issues:
45
types: [labeled]
6+
7+
permissions:
8+
contents: read
9+
510
jobs:
611
publish-message:
712
runs-on: ubuntu-latest
813
steps:
914
- name: Publish Message
10-
uses: actions/github-script@v6
15+
uses: actions/github-script@v7
1116
if: github.event.label.name == 'Type Pick Request'
1217
env:
13-
GITHUB_TOKEN: ${{ secrets.REACT_NATIVE_BOT_REACT_WG_REACT_NATIVE_RELEASES_TOKEN }}
1418
MESSAGE: $(cat ./pick-request-hello-message.md)
15-
with:
19+
with:
20+
github-token: ${{ secrets.REACT_NATIVE_BOT_REACT_WG_REACT_NATIVE_RELEASES_TOKEN }}
1621
script: |
1722
github.rest.issues.createComment({
1823
issue_number: github.context.issue.number,
1924
owner: github.context.repo.owner,
2025
repo: github.context.repo.repo,
2126
body: "${MESSAGE}"
22-
})
27+
})

0 commit comments

Comments
 (0)