Docker run tests defined in image-tests
as root user
#79
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Binder | |
on: | |
pull_request: | |
types: [opened, reopened] | |
jobs: | |
Create-Binder-Badge: | |
runs-on: ubuntu-latest | |
steps: | |
- name: comment on PR with Binder link | |
if: github.event == 'pull_request' | |
uses: actions/github-script@v1 | |
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` | |
}) | |
env: | |
BRANCH_NAME: ${{ github.event.pull_request.head.ref }} |