Skip to content

Commit 69ca380

Browse files
authored
Update format action
1 parent b182d99 commit 69ca380

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

Diff for: .github/workflows/format.yml

+10-8
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,25 @@
11
---
2-
name: format
2+
name: Format
33

44
on:
55
push:
66
branches-ignore:
7-
- master
7+
- main
88
workflow_dispatch: {}
99

1010
jobs:
11-
fix:
11+
commit:
12+
name: Format code
1213
runs-on: ubuntu-latest
1314
timeout-minutes: 30
1415
steps:
1516
- name: Checkout
16-
uses: actions/checkout@v3
17+
uses: actions/checkout@v4
1718
with:
1819
ref: ${{ github.head_ref }}
1920
token: ${{ secrets.GH_TOKEN }}
2021
- name: Import GPG key
21-
uses: crazy-max/ghaction-import-gpg@v5
22+
uses: crazy-max/ghaction-import-gpg@v6
2223
with:
2324
git_user_signingkey: true
2425
git_commit_gpgsign: true
@@ -31,9 +32,10 @@ jobs:
3132
- name: Format
3233
run: npm run format
3334
- name: Commit
34-
uses: stefanzweifel/git-auto-commit-action@v4
35+
uses: stefanzweifel/git-auto-commit-action@v5
36+
if: always()
3537
with:
36-
commit_message: Run format
38+
commit_message: Format code
3739
commit_user_name: ${{ secrets.GIT_USER_NAME }}
3840
commit_user_email: ${{ secrets.GIT_USER_EMAIL }}
39-
commit_author: ${{ secrets.GIT_USER_NAME }} <${{ secrets.GIT_USER_EMAIL }}>
41+
commit_author: ${{ secrets.GIT_USER_NAME }} <${{ secrets.GIT_USER_EMAIL }}>

0 commit comments

Comments
 (0)