diff --git a/actions/setup-cairn/action.yml b/actions/setup-cairn/action.yml index 1fbc55f..420a6b8 100644 --- a/actions/setup-cairn/action.yml +++ b/actions/setup-cairn/action.yml @@ -47,7 +47,7 @@ runs: return 1 } - if [ -f "${TOOL_DIR}/cairn" ] && [ -f "${TOOL_DIR}/.complete" ]; then + if [ "${CAIRN_VERSION}" != "latest" ] && [ -f "${TOOL_DIR}/cairn" ] && [ -f "${TOOL_DIR}/.complete" ]; then echo "Cairn CLI ${CAIRN_VERSION} found in tool cache" else echo "Downloading Cairn CLI ${CAIRN_VERSION}..."