Skip to content

Commit 18d7a51

Browse files
author
Petr Sramek
committed
uuuu
1 parent b3f4c99 commit 18d7a51

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/format-cs-files.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,18 @@ jobs:
3939
run: dotnet tool install -g dotnet-format
4040
- name: Format with .NET ${{ vars.DOTNET_SDK_VERSION }}
4141
run: |
42+
git pull origin ${{ github.ref }}
4243
dotnet format whitespace --verbosity diagnostic
4344
dotnet format style --verbosity diagnostic
4445
dotnet format analyzers --diagnostics IDE0073 --verbosity diagnostic
4546
working-directory: ${{ github.workspace }}
4647
- name: Push to ${{ github.ref }}
4748
run: |
4849
git config --global core.autocrlf false
49-
git pull origin ${{ github.ref }}
5050
git add .
5151
git config user.name "$(git log -n 1 --pretty=format:%an)"
5252
git config user.email "$(git log -n 1 --pretty=format:%ae)"
5353
git commit -m "applied file header rule"
54+
git pull origin ${{ github.ref }}
5455
git push origin ${{ github.ref }}
5556
working-directory: ${{ github.workspace }}

0 commit comments

Comments
 (0)