From a17ee4545902e1c265baa14575bc4f5e3899c8b9 Mon Sep 17 00:00:00 2001 From: Andrew Jong Date: Tue, 8 Oct 2024 20:34:56 -0400 Subject: [PATCH] Tune again --- .github/workflows/dockerfile_version_check.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dockerfile_version_check.yaml b/.github/workflows/dockerfile_version_check.yaml index ff4f1b01..ea472b79 100644 --- a/.github/workflows/dockerfile_version_check.yaml +++ b/.github/workflows/dockerfile_version_check.yaml @@ -55,7 +55,7 @@ jobs: IFS='.' read -r current_major current_minor current_patch <<< "$version_on_main" # Check if the image version for this image_name has been incremented in this PR - version_this_branch=$(git diff origin/${{ github.base_ref }}...HEAD -- docker-compose.yaml | grep -oP "image: .*/$image_name:v\K[0-9]+\.[0-9]+\.[0-9]+") + version_this_branch=$(git diff origin/${{ github.base_ref }}...HEAD -- docker-compose.yaml | grep -oP "image: .*/$image_name:v\K[0-9]+\.[0-9]+\.[0-9]+") || echo "No version increment found." if [ -z "$version_this_branch" ]; then echo "::error::Dockerfile for $image_name was modified but image version in docker-compose.yaml was not updated."