From 1884d70c85b1f11b550117cb351ae595f961fb90 Mon Sep 17 00:00:00 2001 From: Steve Cassidy Date: Thu, 22 Aug 2024 08:18:01 +1000 Subject: [PATCH] make version string in a separate step Signed-off-by: Steve Cassidy --- .github/workflows/nightly-android-testbuild.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/nightly-android-testbuild.yml b/.github/workflows/nightly-android-testbuild.yml index e1fa09e7c..101f584ee 100644 --- a/.github/workflows/nightly-android-testbuild.yml +++ b/.github/workflows/nightly-android-testbuild.yml @@ -72,6 +72,9 @@ jobs: run: | echo "sha_short=$(git rev-parse --short "$GITHUB_SHA")" >> "$GITHUB_ENV" echo "app_version=$(npm pkg get version --workspace=@faims3/app | head -1 | sed -e's/\"//g')" >> "$GITHUB_ENV" + - name: Create version string + shell: bash + run: | echo "version_string=v${{env.app_version}}-android-#${{env.sha_short}}" >> "$GITHUB_ENV" # https://docs.github.com/en/free-pro-team@latest/actions/guides/building-and-testing-java-with-gradle - name: Cache Gradle packages