Skip to content

Commit

Permalink
Test env setup
Browse files Browse the repository at this point in the history
  • Loading branch information
tzununbekov committed Feb 20, 2024
1 parent 3585542 commit 49a0aa4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,21 +29,21 @@ jobs:
- name: Prepare environment
run: |
RELEASE_BUILD=false
if [[ "${GITHUB_REF#refs/tags/}" != "" ]]; then RELEASE_BUILD=true; fi
if [[ "${GITHUB_REF}" == /refs/tags/* ]]; then RELEASE_BUILD=true; fi
RC_BUILD=false
if [[ "${GITHUB_REF#refs/tags/}" == "*-rc" ]]; then RC_BUILD=true; fi
if [[ "${GITHUB_REF}" == /refs/tags/*-rc ]]; then RC_BUILD=true; fi
SNAPSHOT_BUILD=false
if [[ "${GITHUB_REF}" == "refs/heads/master" ]]; then SNAPSHOT_BUILD=true; fi
PR_BUILD=false
if [[ SNAPSHOT_BUILD == "false" && RELEASE_BUILD == "false" ]]; then PR_BUILD=true; fi
if [[ "${SNAPSHOT_BUILD}" == "false" && "${RELEASE_BUILD}" == "false" ]]; then PR_BUILD=true; fi
BUILD_NUMBER="${{ github.run_id }}"-ghactions
if [[ RELEASE_BUILD == "true" ]]; then
BUILD_VERSION="${GITHUB_REF#refs/tags/}";
BUILD_VERSION="${GITHUB_REF#/refs/tags/}";
elif [[ SNAPSHOT_BUILD == "true" ]]; then
BUILD_VERSION="$(git describe --abbrev=0 --tags)"-1snapshot-"$(date '+%Y%m%dT%H%M')"-"$(echo ${GITHUB_SHA} | cut -c1-8)";
elif [[ PR_BUILD == "true" ]]; then
Expand Down

0 comments on commit 49a0aa4

Please sign in to comment.