Create push-master.yml
This commit is contained in:
parent
0c16242f18
commit
1630b06106
1 changed files with 18 additions and 0 deletions
18
.github/workflows/push-master.yml
vendored
Normal file
18
.github/workflows/push-master.yml
vendored
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
name: 'Push `master`'
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
branches: ['master']
|
||||||
|
jobs:
|
||||||
|
comment:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/github-script@v3
|
||||||
|
with:
|
||||||
|
github-token: ${{secrets.GITHUB_TOKEN}}
|
||||||
|
script: |
|
||||||
|
await github.issues.createComment({
|
||||||
|
issue_number: context.issue.number,
|
||||||
|
owner: context.repo.owner,
|
||||||
|
repo: context.repo.repo,
|
||||||
|
body: `⚠⚠⚠ Hey @${context.actor}, did you mean to open this against \`next\`? ⚠⚠⚠`
|
||||||
|
})
|
||||||
Loading…
Add table
Add a link
Reference in a new issue