From 3fff182dc3387a50cbdccafe911d8420f0186be7 Mon Sep 17 00:00:00 2001 From: Sascha Schwarze Date: Mon, 9 Dec 2024 09:02:52 +0100 Subject: [PATCH] Correct regex that selects the lines with image changes Signed-off-by: Sascha Schwarze --- .github/workflows/check-latest-images.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/check-latest-images.yaml b/.github/workflows/check-latest-images.yaml index 474a13490..125be951b 100644 --- a/.github/workflows/check-latest-images.yaml +++ b/.github/workflows/check-latest-images.yaml @@ -28,8 +28,8 @@ jobs: for directory in docs pkg samples test; do hack/check-latest-images.sh ${IMAGE} ${LATEST_RELEASE_URL} ${directory}; done - name: Check image change run: | - echo "FROM=$(git diff --unified=0 | grep '^[-].*image: .*/.*/.*:' | head --lines=1 | cut --delimiter=':' --fields='3' | sed 's/[^[[:digit:].]//g')" >> $GITHUB_OUTPUT - echo "TO=$(git diff --unified=0 | grep '^[+].*image: .*/.*/.*:' | head --lines=1 | cut --delimiter=':' --fields='3' | sed 's/[^[[:digit:].]//g')" >> $GITHUB_OUTPUT + echo "FROM=$(git diff --unified=0 | grep '^[-].*image: .*:' | head --lines=1 | cut --delimiter=':' --fields='3' | sed 's/[^[[:digit:].]//g')" >> $GITHUB_OUTPUT + echo "TO=$(git diff --unified=0 | grep '^[+].*image: .*:' | head --lines=1 | cut --delimiter=':' --fields='3' | sed 's/[^[[:digit:].]//g')" >> $GITHUB_OUTPUT id: image-diff - name: Create pull request uses: peter-evans/create-pull-request@v7