diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 212f86b4fa..1e8ed9b9f9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -95,6 +95,15 @@ jobs: else echo "is_publish_branch=false" >> $GITHUB_ENV fi + + - name: Set SourceRevisionId + run: | + GIT_HASH=$(git describe --long --always --dirty --exclude='*' --abbrev=8) + echo "GitHash: ${GIT_HASH}" + + sed -i 's/HASH_HERE/$GIT_HASH/' Directory.Build.props + cat Directory.Build.props + exit 1 ########## Set up Docker ########## - name: Set up QEMU emulators