Migrate ESLint to eslint.config.mjs
#8722
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: Templates | |
on: | |
push: | |
branches: | |
- "5.2" | |
- "5.3" | |
- "5.4" | |
- "5.5" | |
- "6.0" | |
- master | |
pull_request: | |
permissions: | |
contents: read | |
jobs: | |
sync: | |
name: Check for differing synced templates. | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: sudo apt-get install -y jq diffutils | |
- name: Check for differences | |
run: | | |
for template in $(jq -r '.templates[] + ".tpl"' < syncTemplates.json); do | |
defaultDirectory="$(jq -r '.directories[0]' < syncTemplates.json)" | |
for directory in $(jq -r '.directories[]' < syncTemplates.json); do | |
diff -u $defaultDirectory/$template $directory/$template | |
done | |
done |