Prevent running prevent-readme-pr if an action committed README.md

This commit is contained in:
Frédéric Harper
2022-04-30 19:22:11 -04:00
parent 7254e7dbd7
commit eacbc8eb2a

View File

@@ -11,6 +11,7 @@ jobs:
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.')