Skip to content

Commit

Permalink
Separate test tag from nightly tag in pushing swagger file to bump.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
paolino committed Jan 10, 2025
1 parent 2c71af6 commit 375890f
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions scripts/buildkite/release/push-to-bump.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

set -euox pipefail

TEST_RC=$(buildkite-agent meta-data get test-rc --default "FALSE")

if [[ -n "${BUILDKITE-}" ]]; then
RELEASE_CANDIDATE_COMMIT=$(buildkite-agent meta-data get release-candidate-commit --default "")
Expand All @@ -12,7 +13,6 @@ else
RELEASE_CANDIDATE_COMMIT=""
fi


npm install [email protected]

export PATH=$PWD/node_modules/.bin:$PATH
Expand All @@ -25,8 +25,13 @@ if [[ "$RELEASE" == "true" ]]; then
TOKEN="$BUMP_RELEASE_TOKEN"
REPO=cardano-wallet-backend
else
TOKEN="$BUMP_DAILY_TOKEN"
REPO=cardano-wallet-backend-daily
if [[ "$TEST_RC" == "TRUE" ]]; then
TOKEN="$BUMP_TEST_TOKEN"
REPO=cardano-wallet-backend-test
else
TOKEN="$BUMP_DAILY_TOKEN"
REPO=cardano-wallet-backend-daily
fi
fi

bump diff \
Expand Down

0 comments on commit 375890f

Please sign in to comment.