Skip to content

Commit

Permalink
Merge pull request #88 from JPEWdev/validation
Browse files Browse the repository at this point in the history
github actions: Add check for bad extensions
  • Loading branch information
kestewart authored Jul 9, 2024
2 parents 74b7c5f + 979ad31 commit 7b3c5a2
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,23 @@ jobs:
-not -path './tools-java/*' \
-not -path '*/spdx2.2/*' \
-not -path '*/spdx2.3/*' \
-not -path '*/spdx-3.0/*' | tee flist.txt
-not -path '*/spdx-3.0/*' > flist.txt
test "$(cat flist.txt | wc -l)" = "0"
if [ "$(cat flist.txt | wc -l)" != "0" ]; then
echo "The following files are in the wrong location and will not be checked:"
cat flist.txt
exit 1
fi
- name: Look for files with the wrong extension
run: |
find . -name '*.jsonld' > flist.txt
if [ "$(cat flist.txt | wc -l)" != "0" ]; then
echo "The following files have the wrong extension and will not be checked:"
cat flist.txt
exit 1
fi
- name: Update apt
run: |
Expand Down

0 comments on commit 7b3c5a2

Please sign in to comment.