chore: Further tweaks to version string (#1895)

* fix: Only define SUFFIX if PR or BRANCH build
Also, only define `VERSION_TAG` if VERSION_TAG exists.

* fix: Omit GIT SHA for colorlcd also if a tagged build
This commit is contained in:
Peter Feerick
2022-04-26 10:32:01 +10:00
committed by GitHub
parent 0514ed2b99
commit 3493d69c5b
3 changed files with 3 additions and 5 deletions
+1 -1
View File
@@ -58,7 +58,7 @@ elif [[ $gh_type = "pull" ]]; then
# pull: refs/pull/<pr_number>/merge
gh_pull_number=PR$(echo "$GITHUB_REF" | awk -F / '{print $3}')
export EDGETX_VERSION_SUFFIX=$gh_pull_number
else
elif [[ $gh_type = "heads" ]]; then
# heads: refs/heads/<branch_name>
gh_branch=${GITHUB_REF##*/}
export EDGETX_VERSION_SUFFIX=$gh_branch