Skip to content

Commit 1eaeea7

Browse files
committed
include commit hash in version outputs of tagged releases
1 parent a9edc55 commit 1eaeea7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ jobs:
9696
git config --global user.name "github-actions[bot]"
9797
git config --global user.email "github-actions[bot]@user.noreply.github.com"
9898
sed -i 's/0.0.0/v${{inputs.version}}/g' ${{github.workspace}}/src/LineCount.csproj
99+
sed -i 's@<IncludeSourceRevisionInInformationalVersion>false</IncludeSourceRevisionInInformationalVersion>@<IncludeSourceRevisionInInformationalVersion>true</IncludeSourceRevisionInInformationalVersion>@g' ${{github.workspace}}/src/LineCount.csproj
99100
git commit -am"temporary changes made for tag v${{inputs.version}}"
100101
git tag -a "v${{inputs.version}}" -m"v${{inputs.version}}"
101102
git reset --hard HEAD~1

0 commit comments

Comments
 (0)