Skip to content

Commit 1868f6a

Browse files
authored
ci(pydpf-post): fix step to get latest version (#2611)
1 parent 9476058 commit 1868f6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/pydpf-post.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ jobs:
122122
echo branch="$BranchName"
123123
if [ "$BranchName" = '' ];
124124
then
125-
BranchName=$(git ls-remote --tags --refs $REPO | tail -n1 | cut -d/ -f3)
125+
BranchName=$(git ls-remote --tags --sort="v:refname" --refs $REPO | tail -n1 | cut -d/ -f3)
126126
fi
127127
echo branch=$BranchName
128128
git clone --single-branch --branch "$BranchName" $REPO

0 commit comments

Comments
 (0)