add instructions how to write blog post #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: No PRs to live branch | |
on: | |
pull_request_target: | |
types: | |
- opened | |
branches: | |
- master | |
jobs: | |
prevent-merge: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Comment and close PR | |
run: | | |
gh pr close "${{ github.event.pull_request.url }}" | |
--comment "Pull requests to the live branch are not allowed. Use staging branch. Publish via workflow dispatch to Publish to live workflow" |