File tree 1 file changed +6
-3
lines changed 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -44,19 +44,22 @@ jobs:
44
44
id : get_release
45
45
run : echo "RELEASE_VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
46
46
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
+
47
52
- name : Update .csproj files
48
53
run : |
49
54
RELEASE_VERSION=${{ env.RELEASE_VERSION }}
50
55
IFS=$'\n' # Set the Internal Field Separator to newline for reading multi-line variable
51
56
for PROJECT in $PROJECTS; do
52
57
sed -i "s/<Version>.*<\/Version>/<Version>${RELEASE_VERSION}<\/Version>/" "$PROJECT"
58
+ git add "$PROJECT"
53
59
done
54
60
55
61
- name : GIT commit and push overriding conflicts with local changes (verbose)
56
62
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
60
63
git commit -m "Update version to ${{ env.RELEASE_VERSION }}"
61
64
git fetch origin
62
65
git rebase --strategy-option=theirs origin/main
You can’t perform that action at this time.
0 commit comments