Added a button to open the Origin Private File System #1
Workflow file for this run
This file contains hidden or 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: RTD Preview | |
| on: | |
| pull_request_target: | |
| types: [opened] | |
| permissions: | |
| pull-requests: write | |
| jobs: | |
| binder: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Comment on the PR with the RTD preview | |
| uses: actions/github-script@v6 | |
| with: | |
| github-token: ${{secrets.GITHUB_TOKEN}} | |
| script: | | |
| var PR_NUMBER = context.issue.number | |
| github.rest.issues.createComment({ | |
| issue_number: context.issue.number, | |
| owner: context.repo.owner, | |
| repo: context.repo.repo, | |
| body: `[](https://jupyterlab-filesystem-access--${PR_NUMBER}.org.readthedocs.build/en/${PR_NUMBER}/lite) :point_left: Try it on ReadTheDocs` | |
| }) |