mirror of
https://github.com/openstreetmap/id-tagging-schema.git
synced 2025-10-26 12:23:52 +01:00
Fix "Check file endings" workflow to also allow .md files
`npm run build` still works, so I don't think this is an issue. This also removes the second run of very similar code in the prettier workflow which I think is probably a legacy redundancy that can just be deleted. x
This commit is contained in:
parent
fa267abacf
commit
8bfaef1542
1 changed files with 4 additions and 6 deletions
10
.github/workflows/lint.yml
vendored
10
.github/workflows/lint.yml
vendored
|
|
@ -7,12 +7,12 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- run: |
|
||||
notJSONs=`find data/ -type f -not -iname "*.json"`
|
||||
for f in $notJSONs
|
||||
disallowedFiles=`find data/ -type f -not -iname "*.json" -not -iname "*.md"`
|
||||
for f in $disallowedFiles
|
||||
do
|
||||
echo "::error file=$f::File $f is not a .json file."
|
||||
echo "::error file=$f::File $f is not a .json or .md file."
|
||||
done
|
||||
if [ ! -z "$notJSONs" ]; then exit 1; fi
|
||||
if [ ! -z "$disallowedFiles" ]; then exit 1; fi
|
||||
|
||||
prettier:
|
||||
name: Check for code formatting mistakes
|
||||
|
|
@ -23,7 +23,6 @@ jobs:
|
|||
with:
|
||||
node-version-file: '.nvmrc'
|
||||
- run: npm clean-install
|
||||
- run: 'for f in `find data/ -type f -not -iname "*.json"`; do echo "::error File $f is not a .json file."; done'
|
||||
- run: npm run lint
|
||||
|
||||
codespell:
|
||||
|
|
@ -37,4 +36,3 @@ jobs:
|
|||
skip: ./.git,./dist,./data/deprecated.json
|
||||
ignore_words_list: "auxilary,casette,cemetary,chancel,discus,extentions,faiway,generat,goverment,guerilla,guyser,kindergarden,ore,pavillion,sculpter,storys,linz,te"
|
||||
only_warn: 1
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue