diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index ffc97c24c..38558c93c 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -19,23 +19,11 @@ jobs: with: fail_on_missing_newline: 'false' - - name: Echo files with missing newline + - name: Restore ignored files run: | - echo "Files with missing newline:" - git diff - git status --porcelain - - - name: Check if working tree is dirty - run: | - if [ -n "$(git status --porcelain)" ]; then - echo "Working tree is dirty" - else - echo "Working tree is clean" - fi + git checkout -- **/l10n-missing.txt - name: Commit changes if any uses: stefanzweifel/git-auto-commit-action@v5 with: commit_message: 'lint: Apply final newline changes' - file_pattern: '.' - # disable_globbing: true