Filter out empty extensions when parsing PATHEXT on Windows (#1528) #383
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: copyright | |
on: | |
pull_request: | |
paths: | |
- 'src/**' | |
- '!**.md' | |
push: | |
paths: | |
- 'src/**' | |
- '!**.md' | |
workflow_dispatch: | |
jobs: | |
main: | |
name: Enforce copyright notices | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3 | |
- name: Run copyright checker | |
run: | | |
bash ./src/build_utils/license/apply_copyright | |
if [[ "$(git status | grep modified)" != "" ]]; then | |
echo "Some sourcefiles are missing copyright notice!" 1>&2 | |
echo "Run ./src/build_utils/license/apply_copyright to apply." 1>&2 | |
exit 1 | |
fi |