Skip to content

Generate the README file based on latest change #31

Generate the README file based on latest change

Generate the README file based on latest change #31

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.')