From c35b134806bd0fbfc5efcc3c4974fcccbeec6947 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Fri, 27 May 2022 18:52:17 -0400 Subject: [PATCH] using env.COMMIT_REF not github.sha for the BUILD_SHA (#27989) --- .github/workflows/azure-preview-env-deploy.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/azure-preview-env-deploy.yml b/.github/workflows/azure-preview-env-deploy.yml index 63c21be31a22..6770d0e245e1 100644 --- a/.github/workflows/azure-preview-env-deploy.yml +++ b/.github/workflows/azure-preview-env-deploy.yml @@ -188,7 +188,7 @@ jobs: # `main-docker-cache.yml` handles updating the remote cache so we don't pollute it with PR specific code cache-to: '' build-args: | - BUILD_SHA=${{ github.sha }} + BUILD_SHA=${{ env.COMMIT_REF }} # Succeed despite any non-zero exit code (e.g. if there is no deployment to cancel) - name: 'Cancel any existing deployments for this PR'