From 1dd0440bde6a7d35252510a20f0011043cc93906 Mon Sep 17 00:00:00 2001 From: Rahul De Date: Sun, 13 Oct 2024 15:23:58 +0100 Subject: [PATCH] [describe] add for actions, fix read --- .github/workflows/build.yml | 2 ++ script/compile | 2 +- script/compile.bat | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d90c5d83..a836a934 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -24,6 +24,7 @@ jobs: LEIN_ROOT: "true" BABASHKA_PLATFORM: linux # could be used in jar name GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + BABASHKA_SHA: ${{ github.sha }} steps: - name: Git checkout uses: actions/checkout@v2 @@ -107,6 +108,7 @@ jobs: BABASHKA_TEST_ENV: native BABASHKA_XMX: "-J-Xmx6500m" GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + BABASHKA_SHA: ${{ github.sha }} steps: - name: Git checkout uses: actions/checkout@v2 diff --git a/script/compile b/script/compile index 1e802ef9..fc9b2faa 100755 --- a/script/compile +++ b/script/compile @@ -107,7 +107,7 @@ then export BABASHKA_FEATURE_PRIORITY_MAP="${BABASHKA_FEATURE_PRIORITY_MAP:-false}" fi -if [[ ! -f "$BABASHKA_SHA" ]] +if [[ -z "$BABASHKA_SHA" ]] then sha=$(git rev-parse HEAD) if [[ $? -eq 0 ]]; then diff --git a/script/compile.bat b/script/compile.bat index e990f587..1304c888 100644 --- a/script/compile.bat +++ b/script/compile.bat @@ -23,7 +23,7 @@ Rem -H:EnableURLProtocols=jar,http,https is also not supported. call %GRAALVM_HOME%\bin\gu.cmd install native-image -if not exist "%BABASHKA_SHA%" ( +if "%BABASHKA_SHA%"=="" ( for /f %%i in ('git rev-parse HEAD') do set sha=%%i if not errorlevel 1 ( set BABASHKA_SHA=%sha%