Skip to content

Commit ff82a87

Browse files
authored
Update github-script action
1 parent 87a8f4e commit ff82a87

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

doc/howto/binder-badge.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,24 @@
11
#./.github/workflows/binder-badge.yaml
22
name: Binder Badge
3-
on:
3+
on:
44
pull_request_target:
55
types: [opened]
66

7+
permissions:
8+
pull-requests: write
9+
710
jobs:
811
binder:
912
runs-on: ubuntu-latest
10-
permissions:
11-
pull-requests: write
1213
steps:
1314
- name: comment on PR with Binder link
14-
uses: actions/github-script@v3
15+
uses: actions/github-script@v6
1516
with:
1617
github-token: ${{secrets.GITHUB_TOKEN}}
1718
script: |
1819
var PR_HEAD_USERREPO = process.env.PR_HEAD_USERREPO;
1920
var PR_HEAD_REF = process.env.PR_HEAD_REF;
20-
github.issues.createComment({
21+
github.rest.issues.createComment({
2122
issue_number: context.issue.number,
2223
owner: context.repo.owner,
2324
repo: context.repo.repo,

0 commit comments

Comments
 (0)