Skip to content

Commit

Permalink
Merge pull request #206 from wunderio/feature/git-tags
Browse files Browse the repository at this point in the history
set-release-name command: Use branch name or fall back to "production" if it's a tag
  • Loading branch information
Rade333 authored Dec 3, 2024
2 parents 661fb8b + 7c37789 commit f800aa4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion orb/commands/@common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,8 @@ set-release-name:
command: |
NAMESPACE="${CIRCLE_PROJECT_REPONAME,,}"
BRANCHNAME="${CIRCLE_BRANCH}"
# Use branch name or fall back to "production" if it's a tag.
BRANCHNAME="${CIRCLE_BRANCH:-${CIRCLE_TAG:+production}}"
RELEASE_NAME=$(silta ci release name --branchname "${BRANCHNAME}" --release-suffix "<<parameters.release-suffix>>")
SILTA_ENVIRONMENT_NAME=$(silta ci release environmentname --branchname "${BRANCHNAME}" --release-suffix "<<parameters.release-suffix>>")
Expand Down

0 comments on commit f800aa4

Please sign in to comment.