Tests still appear to fail per #2898. Unfortunately, I need actions/runner#2347 to ignore the test failures properly - I need them to be warnings, not hard errors.
17 lines
469 B
YAML
17 lines
469 B
YAML
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
|