From 200c8ffba1b10619aeadb06cd1d6d7b72f73d15d Mon Sep 17 00:00:00 2001 From: phynias Date: Tue, 2 Apr 2024 18:08:49 -0700 Subject: [PATCH] update workflow13 --- .github/workflows/auto-build-on-base-image-change.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/auto-build-on-base-image-change.yml b/.github/workflows/auto-build-on-base-image-change.yml index 3c609ef..59b64e8 100644 --- a/.github/workflows/auto-build-on-base-image-change.yml +++ b/.github/workflows/auto-build-on-base-image-change.yml @@ -16,7 +16,7 @@ on: type: boolean jobs: - build: + check-build: runs-on: ubuntu-latest steps: @@ -28,7 +28,7 @@ jobs: - name: Check if the base image has been updated run: | - LATEST_DIGEST=$(docker inspect --format='{{.RootFS}}' pihole/pihole:latest) + LATEST_DIGEST=$(docker inspect --format='{{index .RepoDigests 0}}' pihole/pihole:latest) echo "LATEST_DIGEST=$LATEST_DIGEST" >> $GITHUB_ENV echo "BASE_IMAGE_UPDATED=false" >> $GITHUB_ENV if [[ "$LATEST_DIGEST" != "$${{ vars.BASE_IMAGE_DIGEST }}" ]]; then