Create push-master.yml

This commit is contained in:
Isiah Meadows 2020-09-14 20:59:17 -07:00 committed by GitHub
parent 0c16242f18
commit 1630b06106
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

18
.github/workflows/push-master.yml vendored Normal file
View 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\`? ⚠⚠⚠`
})