Skip to content

Commit fa7a1af

Browse files
committed
feat(github/workflows): handle tag with and without v when checking for latest image
1 parent 28d9702 commit fa7a1af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/watch-dependencies.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
run: |
6464
latest_tag=$(
6565
docker run --rm quay.io/skopeo/stable list-tags docker://${{ matrix.registry }}/${{ matrix.repository }} \
66-
| jq -r '[.Tags[] | select(. | match("^\\d+\\.\\d+\\.\\d+$") | .string)] | sort_by(split(".") | map(tonumber)) | last'
66+
| jq -r '[.Tags[] | select(. | match("^v?\\d+\\.\\d+\\.\\d+$") | .string)] | sort_by(split(".") | map(ltrimstr("v") | tonumber)) | last'
6767
)
6868
echo "tag=$latest_tag" >> $GITHUB_OUTPUT
6969

0 commit comments

Comments
 (0)