-
Notifications
You must be signed in to change notification settings - Fork 222
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Separate test tag from nightly tag in pushing swagger file to bump.sh
- Loading branch information
Showing
1 changed file
with
8 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 "") | ||
|
@@ -12,7 +13,6 @@ else | |
RELEASE_CANDIDATE_COMMIT="" | ||
fi | ||
|
||
|
||
npm install [email protected] | ||
|
||
export PATH=$PWD/node_modules/.bin:$PATH | ||
|
@@ -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 \ | ||
|