Skip to content

Commit df19b2e

Browse files
committed
2 parents 5f8daa1 + 67d54de commit df19b2e

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/format.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
push:
66
branches: [ "dev" ]
77

8+
permissions:
9+
contents: write
10+
811
jobs:
912
build:
1013

@@ -19,10 +22,10 @@ jobs:
1922
- name: Restore dependencies
2023
run: dotnet restore
2124
- name: Format
22-
run: dotnet format Style
25+
run: dotnet format style
2326
- name: Commit & Push
2427
run: |
2528
git config --global user.name "github-actions[bot]"
2629
git config --global user.email "github-actions[bot]@user.noreply.github.com"
27-
git commit -a -m"formatted code"
28-
git push
30+
git commit -a -m"formatted code" || true
31+
git push

0 commit comments

Comments
 (0)