Skip to content

Commit b9f9810

Browse files
author
Petr Sramek
committed
- removed duplicate file
- simplified workflow
1 parent 65119f2 commit b9f9810

File tree

2 files changed

+6
-64
lines changed

2 files changed

+6
-64
lines changed

.github/workflows/apply-file-header.yml

Lines changed: 0 additions & 54 deletions
This file was deleted.

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

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,18 +37,14 @@ jobs:
3737
dotnet format whitespace
3838
dotnet format style
3939
dotnet format analyzers --no-restore --diagnostics IDE0073 --verbosity diagnostic
40-
name: Apply file header rule
41-
working-directory: ${{ github.workspace }}
42-
- run: git add .
43-
name: Stage file header rule changes
40+
name: Apply style formatting and file header rule
4441
working-directory: ${{ github.workspace }}
4542
- run: |
43+
git add .
4644
git config user.name "$(git log -n 1 --pretty=format:%an)"
4745
git config user.email "$(git log -n 1 --pretty=format:%ae)"
48-
name: Set user and email from the last commit
49-
- run: git commit -m "applied file header rule"
50-
name: Commit file header rule changes
51-
working-directory: ${{ github.workspace }}
52-
- run: git push origin ${{ github.ref }}
53-
name: Push file header rule changes to ${{ github.ref }}
46+
git commit -m "applied file header rule"
47+
git pull origin ${{ github.ref }}
48+
git push origin ${{ github.ref }}
49+
name: Push style formatting and file header rule to ${{ github.ref }}
5450
working-directory: ${{ github.workspace }}

0 commit comments

Comments
 (0)