Reworked text and formatting #1251
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 the metadata syntax | |
on: | |
workflow_dispatch: ~ | |
pull_request: | |
paths: | |
- 'meta/**' | |
schedule: | |
- cron: '0 12 * * 1' | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Aspell | |
run: sudo apt-get install aspell aspell-en aspell-de aspell-cs aspell-es aspell-fr | |
- name: Set up PHP | |
uses: shivammathur/setup-php@v2 | |
with: | |
php-version: 8.1 | |
extensions: json | |
- uses: actions/checkout@v2 | |
- run: git fetch --prune --unshallow | |
- name: Cache Composer vendor | |
uses: actions/cache@v1 | |
with: | |
path: linter/vendor/ | |
key: ${{ runner.os }}-linter-vendor | |
- name: Install Composer dependencies | |
run: cd linter && composer install --no-interaction --no-suggest | |
- name: Find changed files | |
run: | | |
echo "metafiles=$(git diff --name-only origin/main -- | grep -E "^meta/[^/]+/[^/]+/.+?\.(yml|json)" | uniq | tr '\n' ' ')" >> $GITHUB_ENV | |
- name: Lint files | |
run: linter/lint ${{ env.metafiles }} |