Skip to content

Commit

Permalink
Auto-commit instead
Browse files Browse the repository at this point in the history
  • Loading branch information
fregante authored Aug 19, 2024
1 parent b5c5614 commit b2996e7
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,17 @@ jobs:
run: npx xo
Sort:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- run: jq sort reserved-names.json > sort && mv sort reserved-names.json
name: Sort reserved-names.json
- run: git diff --exit-code
- name: Sort reserved-names.json
run: jq sort reserved-names.json > sort && mv sort reserved-names.json
- name: Commit sorted file if necessary
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Sort reserved-names.json

Test:
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit b2996e7

Please sign in to comment.