name: Warn on pushing to `master` on: pull_request: types: [opened] branches: [master] permissions: issues: write jobs: comment: runs-on: ubuntu-latest steps: - run: | gh issue comment ${{ github.event.pull_request.url }} \ --body '⚠⚠⚠ Hey @${{ github.actor }}, did you mean to open this against `next`? ⚠⚠⚠' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} name: Post alert comment