Add action to warn against PR against master (should be develop)

This commit is contained in:
Nanne Baars 2021-09-29 18:42:25 +02:00
parent 5933d226af
commit 05bef55c80
No known key found for this signature in database
GPG Key ID: A6D6C06FE4EC14E7

View File

@ -7,6 +7,13 @@ jobs:
test:
runs-on: ubuntu-latest
steps:
- name: 'Comment PR'
uses: actions/github-script@0.3.0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const { issue: { number: issue_number }, repo: { owner, repo } } = context;
github.issues.createComment({ issue_number, owner, repo, body: 'Hello world ! 👋' });
- name: Post PR comment
uses: mshick/add-pr-comment@v1
with: