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 49a0aa4 commit 09b803a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/build-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,19 +42,19 @@ jobs:
BUILD_NUMBER="${{ github.run_id }}"-ghactions
if [[ RELEASE_BUILD == "true" ]]; then
if [[ "${RELEASE_BUILD}" == "true" ]]; then
BUILD_VERSION="${GITHUB_REF#/refs/tags/}";
elif [[ SNAPSHOT_BUILD == "true" ]]; then
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
elif [[ "${PR_BUILD}" == "true" ]]; then
BUILD_VERSION="$(git describe --abbrev=0 --tags)"-1branch-"${GITHUB_REF_NAME}";
fi
echo "export RELEASE_BUILD=$RELEASE_BUILD";
echo "export RC_BUILD=$RC_BUILD";
echo "export SNAPSHOT_BUILD=$SNAPSHOT_BUILD";
echo "export BUILD_NUMBER=$BUILD_NUMBER";
echo "export BUILD_VERSION=$BUILD_VERSION";
echo "export RELEASE_BUILD=$RELEASE_BUILD;" >> build/env.sh
echo "export RC_BUILD=$RC_BUILD;" >> build/env.sh
echo "export SNAPSHOT_BUILD=$SNAPSHOT_BUILD;" >> build/env.sh
echo "export BUILD_NUMBER=$BUILD_NUMBER;" >> build/env.sh
echo "export BUILD_VERSION=$BUILD_VERSION;" >> build/env.sh
# - name: Generate env file
# run: go run mage.go -v GenerateEnvFile
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/tests-and-linters.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
name: Tests
# on:
on:
# pull_request:
workflow_call:

env:
GOFLAGS: "-count=1"
Expand Down

0 comments on commit 09b803a

Please sign in to comment.