Skip to content

Commit

Permalink
ci: linter.yml use auto-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
johannesvedder committed Jul 22, 2024
1 parent f0d1599 commit 0e63ad0
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/all_packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
15 changes: 11 additions & 4 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 0e63ad0

Please sign in to comment.