From 3d9de1aaa6cb55e1e341affa9e892698014dcf21 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Sat, 30 Dec 2023 19:12:04 +0100 Subject: [PATCH] git: Fix Ubuntu builds missing commit information --- .github/workflows/build.yml | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9b4c8c1a0..9687eb62c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -388,12 +388,6 @@ jobs: with: dotnet-version: '8.0.100' - - name: 🏔️ Set Environment variables - run: | - echo COMMIT_SHA_SHORT=$(git rev-parse --short HEAD) >> $GITHUB_ENV - echo COMMIT_SHA_LONG=$(git rev-parse HEAD) >> $GITHUB_ENV - echo COMMIT_BRANCH=$(git rev-parse --abbrev-ref HEAD) >> $GITHUB_ENV - # Ubuntu cmake build - name: 🛠️ Build run: | @@ -407,9 +401,9 @@ jobs: -DCMAKE_C_COMPILER_LAUNCHER=ccache \ -DCMAKE_CXX_COMPILER_LAUNCHER=ccache \ -DIMHEX_PATTERNS_PULL_MASTER=ON \ - -DIMHEX_COMMIT_HASH_SHORT="${{ env.COMMIT_SHA_SHORT }}" \ - -DIMHEX_COMMIT_HASH_LONG="${{ env.COMMIT_SHA_LONG }}" \ - -DIMHEX_COMMIT_BRANCH="${{ env.COMMIT_BRANCH }}" \ + -DIMHEX_COMMIT_HASH_SHORT="${GITHUB_SHA::7}" \ + -DIMHEX_COMMIT_HASH_LONG="${GITHUB_SHA}" \ + -DIMHEX_COMMIT_BRANCH="${GITHUB_REF##*/}" \ -DIMHEX_ENABLE_LTO=ON \ -DIMHEX_USE_GTK_FILE_PICKER=ON \ -DDOTNET_EXECUTABLE="dotnet" \