Skip to content

maps: move maps to subdirectories, update index #69

maps: move maps to subdirectories, update index

maps: move maps to subdirectories, update index #69

Workflow file for this run

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