maps: move maps to subdirectories, update index #69
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: Validate | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Check for file formatting issues or outdated index.json | |
run: | | |
tools/reformat-map.sh *.json | |
if [[ -n $(git status --porcelain) ]]; then | |
git status | |
echo "Some maps are formatted incorrectly. Please check the README on how to reformat your files." | |
exit 1 | |
fi | |
tools/update-index.py | |
if [[ -n $(git status --porcelain) ]]; then | |
echo "The index.json file is outdated." | |
exit 1 | |
fi |