Local search - first attempt #41
Workflow file for this run
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 non-master commits to generated files | |
on: | |
# https://stackoverflow.com/a/70569968/3443137 | |
pull_request: | |
paths: | |
- 'dist/**' | |
- 'docs/**' | |
jobs: | |
warn-user: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Warn User to not commit generated files | |
run: bash -c 'echo "You have commited generated files (from the dist or docs folder), this is not allowed. You can only commit files that you have manually edited" && exit 1' |