From 1630b061065a81f760d6b84136d95a6441c97af5 Mon Sep 17 00:00:00 2001 From: Isiah Meadows Date: Mon, 14 Sep 2020 20:59:17 -0700 Subject: [PATCH] Create push-master.yml --- .github/workflows/push-master.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/push-master.yml diff --git a/.github/workflows/push-master.yml b/.github/workflows/push-master.yml new file mode 100644 index 00000000..37983eb9 --- /dev/null +++ b/.github/workflows/push-master.yml @@ -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\`? ⚠⚠⚠` + })