File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ permissions:
20
20
contents : write
21
21
22
22
concurrency :
23
- group : ${{ github.ref }}
23
+ group : ${{ github.head_ref || github. ref }}
24
24
cancel-in-progress : true
25
25
26
26
jobs :
@@ -39,17 +39,17 @@ jobs:
39
39
run : dotnet tool install -g dotnet-format
40
40
- name : Format with .NET ${{ vars.DOTNET_SDK_VERSION }}
41
41
run : |
42
- git pull origin ${{ github.ref }}
42
+ git pull origin ${{ github.head_ref || github. ref }}
43
43
dotnet format whitespace --verbosity diagnostic
44
44
dotnet format style --verbosity diagnostic
45
45
dotnet format analyzers --diagnostics IDE0073 --verbosity diagnostic
46
46
working-directory : ${{ github.workspace }}
47
- - name : Push to ${{ github.ref }}
47
+ - name : Push to ${{ github.head_ref || github. ref }}
48
48
run : |
49
49
git add .
50
50
git config user.name "$(git log -n 1 --pretty=format:%an)"
51
51
git config user.email "$(git log -n 1 --pretty=format:%ae)"
52
52
git commit -m "applied file header rule"
53
- git pull origin ${{ github.ref }}
54
- git push origin ${{ github.ref }}
53
+ git pull origin ${{ github.head_ref || github. ref }}
54
+ git push origin ${{ github.head_ref || github. ref }}
55
55
working-directory : ${{ github.workspace }}
You can’t perform that action at this time.
0 commit comments