Skip to content

Bally MPU AS-2518-35: batch 3 #93

Bally MPU AS-2518-35: batch 3

Bally MPU AS-2518-35: batch 3 #93

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: |
shopt -s globstar
tools/reformat-map.sh **/*.nv.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