From d7feaf2ed75ac1f5d129d4e2841c9fcd90dad17e Mon Sep 17 00:00:00 2001 From: Jordan Dominion Date: Mon, 19 Aug 2024 17:47:58 -0400 Subject: [PATCH] Fix deployment conditional --- .github/workflows/ci-pipeline.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-pipeline.yml b/.github/workflows/ci-pipeline.yml index fb4bd67147..8a0612ae17 100644 --- a/.github/workflows/ci-pipeline.yml +++ b/.github/workflows/ci-pipeline.yml @@ -1738,7 +1738,7 @@ jobs: name: Ensure TGS Release is Latest GitHub Release needs: [deploy-dm, deploy-http] runs-on: ubuntu-latest - if: (!contains(github.event.head_commit.message, '[TGSDeploy]')) + if: (!(cancelled() || failure())) && (!contains(github.event.head_commit.message, '[TGSDeploy]')) steps: - name: Setup dotnet uses: actions/setup-dotnet@v4 @@ -1759,7 +1759,7 @@ jobs: name: Deploy TGS needs: [deploy-dm, deploy-http, deployment-gate] runs-on: windows-latest - if: github.event.ref == 'refs/heads/master' && contains(github.event.head_commit.message, '[TGSDeploy]') + if: (!(cancelled() || failure())) && github.event.ref == 'refs/heads/master' && contains(github.event.head_commit.message, '[TGSDeploy]') env: TGS_TELEMETRY_KEY_FILE: C:/tgs_telemetry_key.txt steps: