Add action to warn against PR against master (should be develop)
This commit is contained in:
parent
05bef55c80
commit
902af04dd4
7
.github/workflows/master_branch_pr.yml
vendored
7
.github/workflows/master_branch_pr.yml
vendored
@ -7,13 +7,6 @@ jobs:
|
|||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
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
|
- name: Post PR comment
|
||||||
uses: mshick/add-pr-comment@v1
|
uses: mshick/add-pr-comment@v1
|
||||||
with:
|
with:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user