Skip to content

Commit 286c195

Browse files
authored
CI autocomment should use colab, not binder (#232)
1 parent 521fd6f commit 286c195

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/binder-badge.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
#./.github/workflows/binder-badge.yaml
2-
name: Binder Badge
1+
#./.github/workflows/colab-badge.yaml
2+
name: Colab Badge
33
on:
44
pull_request_target:
55
types: [opened]
66

77
jobs:
8-
binder:
8+
colab:
99
runs-on: ubuntu-latest
1010
permissions:
1111
pull-requests: write
1212
steps:
13-
- name: comment on PR with Binder link
14-
uses: actions/github-script@v3
13+
- name: comment on PR with Colab link
14+
uses: actions/github-script@v8
1515
with:
1616
github-token: ${{secrets.GITHUB_TOKEN}}
1717
script: |
@@ -21,7 +21,7 @@ jobs:
2121
issue_number: context.issue.number,
2222
owner: context.repo.owner,
2323
repo: context.repo.repo,
24-
body: `[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/${PR_HEAD_USERREPO}/${PR_HEAD_REF}) :point_left: Launch a binder notebook on branch _${PR_HEAD_USERREPO}/${PR_HEAD_REF}_`
24+
body: `[![Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/OpenFreeEnergy/ExampleNotebooks/blob/${PR_HEAD_REF}/showcase)) :point_left: Launch a Colab session on branch ``${PR_HEAD_REF}``.
2525
})
2626
env:
2727
PR_HEAD_REF: ${{ github.event.pull_request.head.ref }}

0 commit comments

Comments
 (0)