Generate the README file based on latest change #31
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: Prevent README commits | |
on: | |
push: | |
paths: | |
- 'README.md' | |
jobs: | |
check-for-readme-commit: | |
runs-on: ubuntu-latest | |
if: ${{ github.actor != 'actions-user' }} | |
steps: | |
- name: Fail this PR | |
uses: actions/github-script@v3 | |
if: ${{ github.event.head_commit.committer.username != 'actions-user' }} | |
with: | |
script: | | |
core.setFailed('Do not make changes in README.md directly! Update TEMPLATE_README.md in the scripts folder instead.') |