-
Notifications
You must be signed in to change notification settings - Fork 25
26 lines (25 loc) · 1017 Bytes
/
binderbadge.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# # create a mybinder badge issue comment for testing PRs
# name: AddBinderBadge
# on:
# pull_request:
# types: [opened, reopened]
# jobs:
# build-image-without-pushing:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout PR
# uses: actions/[email protected]
# - name: Comment on PR with Binder link
# uses: actions/[email protected]
# env:
# BRANCH_NAME: ${{ github.event.pull_request.head.ref }}
# with:
# github-token: ${{secrets.GITHUB_TOKEN}}
# script: |
# var BRANCH_NAME = process.env.BRANCH_NAME;
# github.issues.createComment({
# issue_number: context.issue.number,
# owner: context.repo.owner,
# repo: context.repo.repo,
# body: `[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/${context.repo.owner}/${context.repo.repo}/${BRANCH_NAME}) :point_left: Launch a binder notebook on this branch`
# })