From a5492b16ac51d832d4214045149b9c56c53369d8 Mon Sep 17 00:00:00 2001 From: OMGeeky <> Date: Sun, 16 Feb 2025 00:39:10 +0100 Subject: [PATCH] Refactor GitHub Actions workflow to streamline version retrieval process (cherry picked from commit 4fe7e71a43786c424048ac5064ca645499ad5e0e) --- .github/workflows/release.yml | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1fbfd6a..b330205 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,6 +11,18 @@ jobs: steps: - uses: actions/checkout@v2 + - name: Get Version + id: get_version + shell: bash + run: | + pwd + echo "Reading version from file:" + cat packaging/ATCS_latest + VERSION=$(cat packaging/ATCS_latest | sed 's/^v//') + echo "Processed version: $VERSION" + echo "VERSION=$VERSION" >> $GITHUB_ENV + echo "Environment variable set to: $VERSION" + - name: Set up JDK uses: actions/setup-java@v2 with: @@ -40,17 +52,6 @@ jobs: echo "Checking installer artifacts:" ls -la - - name: Get Version - id: get_version - shell: bash - run: | - echo "Reading version from file:" - cat packaging/ATCS_latest - VERSION=$(cat packaging/ATCS_latest | sed 's/^v//') - echo "Processed version: $VERSION" - echo "VERSION=$VERSION" >> $GITHUB_ENV - echo "Environment variable set to: $VERSION" - - name: Upload ZIP to Release uses: actions/upload-release-asset@v1 env: