diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 84440c9..67e921d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -52,7 +52,7 @@ jobs: # Check if the latest image exists in the registry IMAGE_EXISTS=$(curl -s -o /dev/null -w "%{http_code}" -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" "https://ghcr.io/v2/${{ github.repository_owner }}/${{ matrix.project }}/manifests/latest") - cd ${{ matrix.project }} + if [ "$IMAGE_EXISTS" == "200" ]; then echo "Latest image exists, checking for changes..."