Update e2e-public-link-in-pr.yml #102
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: Post link to public end-to-end test repository | |
on: | |
pull_request_target: | |
types: | |
- opened | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
permissions: | |
pull-requests: write | |
steps: | |
- run: | | |
gh pr comment ${LINK} --body-file - <<EOF | |
[End-to-end public repo](https://github.com/mihcaojwe/python-coverage-comment-action-end-to-end-${NUMBER}-public) | |
Admin commands cheatsheet: | |
- `/e2e` (in approved PR review body): Trigger end-to-end tests on external contributions | |
- `/invite` (in comment): Invite the author & admins to the end-to-end private repo | |
EOF | |
env: | |
LINK: ${{ github.event.pull_request.html_url }} | |
NUMBER: ${{ github.event.pull_request.number }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |