feat: lint workflow files and others files in .github (#16914)

* add npm prettier dep and format script to .github folder

* initial work on prettier formatting test

* attempt index notation

* change name of .github job to be valid

* another use of index notation

this is getting overcomplicated

* Change job ID to `github-files-formatting` and chane the name to `.github Files Checks`

* Change job name to `.github Files Formatting`

* Update Makefile with .github module and `filter-out`s

* run prettier formatting as added in this PR
This commit is contained in:
Nicholas Flamy
2025-03-24 11:49:18 -04:00
committed by GitHub
parent df8ba21b7d
commit 9e015c7f97
17 changed files with 173 additions and 108 deletions

View File

@@ -20,13 +20,13 @@ jobs:
- 'i18n/!(en)**\.json'
- name: Debug
run: |
echo "Should run: ${{ steps.found_paths.outputs.i18n == 'true' && github.head_ref != 'chore/translations'}}"
echo "Found i18n paths: ${{ steps.found_paths.outputs.i18n }}"
echo "Head ref: ${{ github.head_ref }}"
echo "Should run: ${{ steps.found_paths.outputs.i18n == 'true' && github.head_ref != 'chore/translations'}}"
echo "Found i18n paths: ${{ steps.found_paths.outputs.i18n }}"
echo "Head ref: ${{ github.head_ref }}"
enforce-lock:
name: Check Weblate Lock
needs: [ pre-job ]
needs: [pre-job]
runs-on: ubuntu-latest
if: ${{ needs.pre-job.outputs.should_run == 'true' }}
steps:
@@ -45,7 +45,7 @@ jobs:
run: exit 1
success-check-lock:
name: Weblate Lock Check Success
needs: [ enforce-lock ]
needs: [enforce-lock]
runs-on: ubuntu-latest
if: always()
steps: