From 5797b78843d08c9cb12c784d6fc48417632bc5da Mon Sep 17 00:00:00 2001 From: Vince Grassia <593223+vgrassia@users.noreply.github.com> Date: Mon, 24 Mar 2025 17:48:25 -0400 Subject: [PATCH] Set hash --- .github/workflows/build.yml | 9 +++++++++ 1 file changed, 9 insertions(+) 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