Skip to content

Commit c675945

Browse files
committed
fix checkout tag and add comment
Signed-off-by: Maksim Fedotov <[email protected]>
1 parent be3c6e9 commit c675945

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/dev_build_svace.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ jobs:
4949
id: modules_module_tag
5050
run: |
5151
if [[ "${{ github.event_name }}" == 'schedule' ]]; then
52-
CHECKOUT_TAG=$(git branch --all | grep -E 'remotes\/[^/]+\/release-[0-9]+\.[0-9]-cse+$' | sort -V)
52+
# get last semver branch with remotes/<remote>/release-X.Y format
53+
CHECKOUT_TAG=$(git branch --all | grep -E 'remotes\/[^/]+\/release-[0-9]+\.[0-9]-cse+$' | sort -V | tail -n 1)
5354
else
5455
CHECKOUT_TAG=${{ github.event.pull_request.head.sha || github.sha }}
5556
fi

0 commit comments

Comments
 (0)