Skip to content

Commit

Permalink
prow.sh: fix "on-master" prow jobs
Browse files Browse the repository at this point in the history
The recent introduction of version_to_git broke Prow jobs with
CSI_PROW_KUBERNETES_VERSION=latest because that version was first
converted to "master" and then once more to "vmaster". The second call
must be idempotent because "master" is already a branch name.
  • Loading branch information
pohly committed Feb 1, 2021
1 parent 9f10459 commit 3e811d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion prow.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ version_to_git () {
version="$1"
shift
case "$version" in
latest) echo "master";;
latest|master) echo "master";;
release-*) echo "$version";;
*) echo "v$version";;
esac
Expand Down

0 comments on commit 3e811d6

Please sign in to comment.