Skip to content

Commit 92a2fb9

Browse files
authored
Merge pull request #13 from DominikaLos/DominikaLos-patch-1
Update pipeline2.yml
2 parents 99e776c + ee1fe56 commit 92a2fb9

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
lines changed

.config/dotnet-tools.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@
99
]
1010
}
1111
}
12-
}
12+
}

.github/workflows/pipeline2.yml

+10-7
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,21 @@ jobs:
2525
- name: Build
2626
run: dotnet build
2727

28+
- name: configuring git
29+
run: |
30+
echo
31+
echo "configure git"
32+
git config --global user.email "GITHUB@ACTION"
33+
git config --global user.name "$GITHUB.ACTION"
34+
2835
- name: Setup Resharper CLI
2936
run: |
3037
dotnet tool restore
3138
dotnet tool update --global JetBrains.ReSharper.GlobalTools
3239
dotnet jb cleanupcode --settings="./.editorconfig" Test.sln
33-
echo "---"
40+
- name: pushing changes if needed
41+
run: |
42+
echo
3443
echo "if there is formatted code, names are:"
3544
git diff --name-only
3645
echo "---"
@@ -40,10 +49,6 @@ jobs:
4049
echo "stage all changes"
4150
git add .
4251
echo "---"
43-
echo "configure git"
44-
git config --global user.email "GITHUB@ACTION"
45-
git config --global user.name "$GITHUB.ACTION"
46-
echo "---"
4752
echo "git commit"
4853
git commit -m "here is reformatted code by github action"
4954
echo "---"
@@ -52,5 +57,3 @@ jobs:
5257
echo "---"
5358
echo "status"
5459
git status
55-
echo "---"
56-
echo ""
+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
16871728370429907
1+
16872566315958544

0 commit comments

Comments
 (0)