Skip to content

Commit

Permalink
Fix the tag name in some situation (knative#783)
Browse files Browse the repository at this point in the history
* fix the tag name in some situation

* fix the tag name in some situation
  • Loading branch information
chizhg authored and knative-prow-robot committed May 15, 2019
1 parent d48062e commit 73f74ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/library.sh
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ function get_knative_base_yaml_source() {
# If it's a release branch, we should have a different knative_base_yaml_source.
if [[ $branch_name =~ ^release-[0-9\.]+$ ]]; then
# Get the latest tag name for the current branch, which is likely formatted as v0.5.0
local tag_name="$(git describe --tags)"
local tag_name="$(git describe --tags --abbrev=0)"
knative_base_yaml_source="https://storage.googleapis.com/knative-releases/@/previous/${tag_name}"
fi
echo "${knative_base_yaml_source}"
Expand Down

0 comments on commit 73f74ba

Please sign in to comment.