From 8a91760b122b4baa8d1f6d3a8bea975bff4826a5 Mon Sep 17 00:00:00 2001 From: Arthur Meyre Date: Wed, 10 Nov 2021 10:08:33 +0100 Subject: [PATCH] chore: check latest base image is strictly newer - otherwise we try to open PRs for no good reason (thankfully no diffs means the PR is not opened) --- script/actions_utils/timestamp_check_update_container.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/actions_utils/timestamp_check_update_container.sh b/script/actions_utils/timestamp_check_update_container.sh index 0dfda9bae..a2ce24a66 100755 --- a/script/actions_utils/timestamp_check_update_container.sh +++ b/script/actions_utils/timestamp_check_update_container.sh @@ -86,7 +86,7 @@ CURRENT_BASE_IMG_DATE=$(date -d "${CURRENT_BASE_IMG_TIMESTAMP}" +%s) echo "Base epoch: ${LATEST_BASE_IMG_TIMESTAMP}" echo "Env epoch: ${CURRENT_BASE_IMG_DATE}" -if [[ "${LATEST_BASE_IMG_TIMESTAMP}" -ge "${CURRENT_BASE_IMG_DATE}" ]]; then +if [[ "${LATEST_BASE_IMG_TIMESTAMP}" -gt "${CURRENT_BASE_IMG_DATE}" ]]; then echo "Env image out of date, sending rebuild request." NEW_BASE_IMG_TAG=$(echo "${LATEST_BASE_IMG_JSON}" | \ jq -rc '.metadata.container.tags - ["latest"] | .[0]')