From 443ee8ba34cf8bf49d7d153e474c080536bc5df8 Mon Sep 17 00:00:00 2001 From: Josh Furie Date: Sat, 20 Jul 2024 14:14:22 -0700 Subject: [PATCH] chore: Update deployment status conditions in develop.deploy-functions.yml --- .github/workflows/develop.deploy-functions.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/develop.deploy-functions.yml b/.github/workflows/develop.deploy-functions.yml index ea5f23358..d1d4a002d 100644 --- a/.github/workflows/develop.deploy-functions.yml +++ b/.github/workflows/develop.deploy-functions.yml @@ -97,7 +97,7 @@ jobs: image: 'gcr.io/${{ vars.PROJECT_ID }}/${{ vars.DOCKER_IMAGE_NAME }}:latest' - name: Update deployment status (success) - if: success() + if: success() && steps.semantic.outputs.new_release_published == 'true' uses: chrnorm/deployment-status@v2 with: token: '${{ secrets.GH_TOKEN }}' @@ -105,7 +105,7 @@ jobs: state: 'success' deployment-id: ${{ steps.deployment.outputs.deployment_id }} - name: Update deployment status (failure) - if: failure() + if: failure() && steps.semantic.outputs.new_release_published == 'true' uses: chrnorm/deployment-status@v2 with: token: '${{ secrets.GH_TOKEN}}'