Skip to content

Commit 25126b2

Browse files
authored
Update dotnet-desktop.yml
1 parent 203214f commit 25126b2

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/dotnet-desktop.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,19 +44,22 @@ jobs:
4444
id: get_release
4545
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
4646

47+
- name: Init git
48+
run: |
49+
git config --global user.name "github-actions[bot]"
50+
git config --global user.email "github-actions[bot]@users.noreply.github.com"
51+
4752
- name: Update .csproj files
4853
run: |
4954
RELEASE_VERSION=${{ env.RELEASE_VERSION }}
5055
IFS=$'\n' # Set the Internal Field Separator to newline for reading multi-line variable
5156
for PROJECT in $PROJECTS; do
5257
sed -i "s/<Version>.*<\/Version>/<Version>${RELEASE_VERSION}<\/Version>/" "$PROJECT"
58+
git add "$PROJECT"
5359
done
5460
5561
- name: GIT commit and push overriding conflicts with local changes (verbose)
5662
run: |
57-
git config --global user.name "github-actions[bot]"
58-
git config --global user.email "github-actions[bot]@users.noreply.github.com"
59-
git add src/*.csproj
6063
git commit -m "Update version to ${{ env.RELEASE_VERSION }}"
6164
git fetch origin
6265
git rebase --strategy-option=theirs origin/main

0 commit comments

Comments
 (0)