From 0e63ad0119f84b52970f5df7f38567459f7430e4 Mon Sep 17 00:00:00 2001 From: Johannes Vedder Date: Mon, 22 Jul 2024 20:43:06 +0200 Subject: [PATCH] ci: linter.yml use auto-commit --- .github/workflows/all_packages.yml | 2 +- .github/workflows/linter.yml | 15 +++++++++++---- README.md | 2 +- 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/.github/workflows/all_packages.yml b/.github/workflows/all_packages.yml index 14454a6bd..dd8c3602b 100644 --- a/.github/workflows/all_packages.yml +++ b/.github/workflows/all_packages.yml @@ -51,7 +51,7 @@ jobs: - name: Commit changes if any uses: stefanzweifel/git-auto-commit-action@v5 with: - commit_message: "chore: Apply static analysis changes" + commit_message: 'chore: Apply static analysis changes' test: runs-on: ubuntu-latest diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index f0b4e0514..58038a794 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -13,10 +13,17 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 + - name: Check final newline uses: johannesvedder/check-final-newline@main with: - commit_changes: 'true' - commit_name: 'StudyU Action Bot' - commit_email: 'noreply@studyu.health' - commit_message: 'lint: Append newlines to end of files' + fail_on_missing_newline: 'false' + + - name: Restore ignored files + run: | + 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' diff --git a/README.md b/README.md index c87fd03ca..337e09a69 100644 --- a/README.md +++ b/README.md @@ -76,4 +76,4 @@ Henschel F, Manaswini M, Pottbäcker F, Edelman JA, Owoyele B, Danieletto M, Golden E, Zweig M, Nadkarni G, Böttinger E (2020). StudyU: a platform for designing and conducting innovative digital N-of-1 trials. arXiv: 2012.1420. -[https://arxiv.org/abs/2012.14201](https://arxiv.org/abs/2012.14201). +[https://arxiv.org/abs/2012.14201](https://arxiv.org/abs/2012.14201) \ No newline at end of file