You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GitHub Actor is the user that opened the PR, but this may not be the same as the owner of the fork.
`pull_request.head.repo.full_name` should be the `owner/reponame` of the PR fork
Copy file name to clipboardExpand all lines: doc/howto/binder-badge.yaml
+3-4Lines changed: 3 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -11,15 +11,14 @@ jobs:
11
11
with:
12
12
github-token: ${{secrets.GITHUB_TOKEN}}
13
13
script: |
14
-
var PR_HEAD_USER = process.env.GITHUB_ACTOR;
15
-
var PR_HEAD_REPO = process.env.PR_HEAD_REPO;
14
+
var PR_HEAD_USERREPO = process.env.PR_HEAD_USERREPO;
16
15
var PR_HEAD_SHA = process.env.PR_HEAD_SHA;
17
16
github.issues.createComment({
18
17
issue_number: context.issue.number,
19
18
owner: context.repo.owner,
20
19
repo: context.repo.repo,
21
-
body: `[](https://mybinder.org/v2/gh/${PR_HEAD_USER}/${PR_HEAD_REPO}/${PR_HEAD_SHA}) :point_left: Launch a binder notebook on this branch for commit ${PR_HEAD_SHA}`
20
+
body: `[](https://mybinder.org/v2/gh/${PR_HEAD_USERREPO}/${PR_HEAD_SHA}) :point_left: Launch a binder notebook on this branch for commit ${PR_HEAD_SHA}`
0 commit comments