We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 719dec4 commit 9398c83Copy full SHA for 9398c83
action.yml
@@ -270,7 +270,11 @@ runs:
270
elif [ -n "${CLI_VERSION}" ]; then
271
CLI_VERSION_TAG="${CLI_VERSION}"
272
REPO_TAG="${CLI_VERSION}"
273
- VERIFY_FLAG="--source-tag"
+ if [[ "${CLI_VERSION}" =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
274
+ VERIFY_FLAG="--source-tag"
275
+ else
276
+ VERIFY_FLAG="--source-branch"
277
+ fi
278
else
279
REPO_TAG=$(curl -fLsS --variable '%AUTH_HEADER' --expand-header '{{AUTH_HEADER}}' --retry 5 https://api.github.com/repos/blue-build/cli/tags | jq -r '.[0].name')
280
CLI_VERSION_TAG="v0.9"
0 commit comments