Skip to content

Commit b44eb67

Browse files
committed
Ignore unresolved latest runner version
1 parent b100882 commit b44eb67

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

scripts/download.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,12 @@ download_required() {
1919
# Outputs without the 'v' prefix
2020
CURRENT_VERSION=$(./actions-runner/bin/Runner.Listener --version)
2121
# check if both current and latest versions are set
22-
if [ -z "${CURRENT_VERSION}" ] || [ -z "${LATEST_RUNNER_VERSION}" ]; then
23-
log "Could not determine current or latest runner version."
22+
if [ -z "${LATEST_RUNNER_VERSION}" ]; then
23+
log "Unable to get latest runner version"
24+
return 1
25+
fi
26+
if [ -z "${CURRENT_VERSION}" ]; then
27+
log "Could not determine current runner version."
2428
log "Current: '${CURRENT_VERSION}', Latest: '${LATEST_RUNNER_VERSION}'"
2529
return 0
2630
fi

0 commit comments

Comments
 (0)