From f96ed95594bc12a9d045f8d8a8cd01036c44e100 Mon Sep 17 00:00:00 2001 From: Oliver Luo Date: Sun, 26 Nov 2023 11:31:34 -0800 Subject: [PATCH] added to github env --- .github/workflows/release.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 273cc7c..d922297 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -199,13 +199,13 @@ jobs: run: | IMAGE="${{ inputs.image }}:${{ github.ref_name }}" if docker manifest inspect "$IMAGE" &> /dev/null ; then - IMAGE_EXISTS=true + IMAGE_EXISTS=true >> $GITHUB_ENV echo "Image found in ICR: ${IMAGE}" else - IMAGE_EXISTS=false + IMAGE_EXISTS=false >> $GITHUB_ENV echo "Image not found in ICR: ${IMAGE}" fi - + - name: Skip build and push? run: echo "Image is found on ICR, skipping build and push" if: env.IMAGE_EXISTS=='true' @@ -233,7 +233,7 @@ jobs: SN_GITHUB_NPM_TOKEN=${{ secrets.NPM_TOKEN }} SN_GITHUB_NPM_REGISTRY=https://npm.pkg.github.com if: env.IMAGE_EXISTS == 'false' - + - uses: sigstore/cosign-installer@main if: ${{ inputs.push }}