Skip to content

Commit db995d9

Browse files
Fix Binder comment action repo and ref (#262)
* Try out Binder comment action * Update ci-binder-link-comment.yaml
1 parent ac07ef0 commit db995d9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/ci-binder-link-comment.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Comment with Binder link on PRs
1+
name: Comment with Binder link
22

33
on: pull_request_target
44

@@ -13,7 +13,6 @@ jobs:
1313
uses: thollander/actions-comment-pull-request@v1
1414
with:
1515
message: |
16-
Beep boop! Here is a Binder link where you can try out this change.
17-
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/${{github.repository}}/${{github.ref}})
16+
Beep boop! Here is a Binder link where you can try out this change. [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/${{ (github.event.pull_request_target || github.event.pull_request).head.repo.full_name }}/${{ (github.event.pull_request_target || github.event.pull_request).head.sha }})
1817
comment_includes: "Binder link"
1918
GITHUB_TOKEN: ${{ secrets.DASK_BOT_TOKEN }}

0 commit comments

Comments
 (0)