We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7ff1adf commit a66ca73Copy full SHA for a66ca73
.github/actions/latest-docker-repository-version/action
@@ -6,7 +6,7 @@ RESPONSE="$(curl -sL https://registry.hub.docker.com/v2/repositories/${DOCKER_HU
6
7
echo "${RESPONSE}" | jq
8
9
-LATEST_PUSHED_VERSION="$(echo "${RESPONSE}" | jq -r '.results[].name' | sort -Vr | grep -oE '^[0-9]+\.[0-9]+$' | head -n 1 | tr -d '\n')"
+LATEST_PUSHED_VERSION="$(echo "${RESPONSE}" | jq -r '.results[].name' | sort -Vr | grep -oE '^[0-9]+\.[0-9]+(-|$)' | head -n 1 | tr -d '\n' | tr -d '-' )"
10
11
test -n "${LATEST_PUSHED_VERSION}" || ( echo "LATEST_PUSHED_VERSION is not found!" && false )
12
0 commit comments