Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
bthaile committed Mar 13, 2024
2 parents 21fdad8 + 7957b40 commit 15ca4b2
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions .github/workflows/prettier_write.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ jobs:
steps:
- name: Check out repo
uses: actions/checkout@v2
- name: Check out PR
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh pr checkout ${{ github.event.pull_request.number }}
- uses: actions/cache@v2
name: Configure npm caching
with:
Expand All @@ -19,11 +23,16 @@ jobs:
- name: Run prettier
run: |-
npx prettier --write '_data/*/*.json'
- uses: stefanzweifel/git-auto-commit-action@v5
name: commit
with:
commit_message: Formatting files
status_options: '--untracked-files=no'
skip_dirty_check: true
skip_fetch: true
skip_checkout: true
- name: Check if there are any changes
id: verify_diff
run: git diff --quiet . || echo "changed=true" >> $GITHUB_OUTPUT
- name: Commit/Push
if: steps.verify_diff.outputs.changed == 'true'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |-
git config user.name "ligi"
git config user.email "ligi@ligi.de"
git commit -a -m 'Fix formatting'
git push

0 comments on commit 15ca4b2

Please sign in to comment.