Skip to content

Fix workflow permissions #2

Fix workflow permissions

Fix workflow permissions #2

Workflow file for this run

name: Comment PR
on:
pull_request_target:
permissions:

Check failure on line 6 in .github/workflows/comment-pr.yml

View workflow run for this annotation

GitHub Actions / Comment PR

Invalid workflow file

The workflow is not valid. .github/workflows/comment-pr.yml (Line: 6, Col: 1): Unexpected value 'comment-pr'
pull-requests: write
jobs:
comment-pr:
runs-on: ubuntu-latest
name: Comment PR
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Comment PR
uses: thollander/actions-comment-pull-request@v2
with:
message: |
Thank you for making this pull request.
Did you know? You can try it on Binder: [![Binder:lab](https://img.shields.io/badge/binder-jupyterlab-0172B2.svg)](https://mybinder.org/v2/gh/${{ github.event.pull_request.head.repo.full_name }}/${{ github.event.pull_request.head.ref }}?urlpath=lab/tree/demo/get_started.ipynb) or [![Binder:notebook](https://img.shields.io/badge/binder-notebook-0172B2.svg)](https://mybinder.org/v2/gh/${{ github.event.pull_request.head.repo.full_name }}/${{ github.event.pull_request.head.ref }}?filepath=demo).
Also, the version of Jupytext developed in this PR can be installed with `pip`:
```
pip install git+${{ github.event.pull_request.head.repo.clone_url }}@${{ github.event.pull_request.head.ref }}
```
(this requires `nodejs`, see more at [Developing Jupytext](https://jupytext.readthedocs.io/en/latest/developing.html))
comment_tag: binder_link