Skip to content

Commit 6e4c8fd

Browse files
fix(ci): use tags instead of branches (cherry-pick argoproj#22372) (argoproj#22373)
Signed-off-by: Michael Crenshaw <[email protected]> Co-authored-by: Michael Crenshaw <[email protected]>
1 parent 15046b9 commit 6e4c8fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hack/update-supported-versions.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ for _ in {1..3}; do
2828
if [ "$argocd_minor_version_num" -eq 0 ]; then
2929
argocd_major_version_num=$((argocd_major_version_num - 1))
3030
# Get the latest minor version in the previous series.
31-
argocd_minor_version_num=$(git branch -l "release-$argocd_major_version_num.*" | sort -V | tail -n 1 | sed -E 's/release-[0-9]+\.//')
31+
argocd_minor_version_num=$(git tag -l "v$argocd_major_version_num.*" | sort -V | tail -n 1 | sed -E 's/\.[0-9]+$//' | sed -E 's/^v[0-9]+\.//')
3232

3333
# Don't decrement the minor version, since we're switching to the previous major release series. We want the latest
3434
# minor version in that series.

0 commit comments

Comments
 (0)