Add demo file and checks #3
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: Check asset file names | |
on: pull_request | |
jobs: | |
Filenamecheck: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- shell: bash | |
run: | | |
find assets | grep "\.[A-Z]" && echo "Upper case characters found in file endings" && exit 1 || echo "No upper case characters found in file endings" | |
find assets -type f -mtime -14 -printf '%f\n' | grep "[_+ ]" && echo "Underscore, plus or space found in file names" && exit 1 || echo "No underscore, plus or space found in file names" |