From 8f51de0f6d4eb05c43820e461e0686f8014e6568 Mon Sep 17 00:00:00 2001 From: Gustavo Valverde Date: Wed, 16 Oct 2024 10:43:25 +0100 Subject: [PATCH] fix: use correct pipeline conditions --- .github/workflows/cd-deploy-nodes-gcp.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cd-deploy-nodes-gcp.yml b/.github/workflows/cd-deploy-nodes-gcp.yml index bf4f94d1c4c..3811b9ac8cb 100644 --- a/.github/workflows/cd-deploy-nodes-gcp.yml +++ b/.github/workflows/cd-deploy-nodes-gcp.yml @@ -237,8 +237,7 @@ jobs: permissions: contents: 'read' id-token: 'write' - # TODO: Remove `|| github.event_name == 'workflow_dispatch'` condition before merging - if: ${{ !cancelled() && !failure() && ((github.event_name == 'push' && github.ref_name == 'main') || github.event_name == 'release') || github.event_name == 'workflow_dispatch' }} + if: ${{ !cancelled() && !failure() && ((github.event_name == 'push' && github.ref_name == 'main') || github.event_name == 'release') }} steps: - uses: actions/checkout@v4.2.1 @@ -295,7 +294,7 @@ jobs: echo "zebra_checkpoint_disk=${ZEBRA_CHECKPOINT_DISK}" >> "${GITHUB_OUTPUT}" - name: Get IP address for long-running release nodes - # if: ${{ github.event_name == 'release' }} + if: ${{ github.event_name == 'release' }} run: echo "IP_ADDRESS=$(gcloud compute addresses describe zebra-${NETWORK} --region ${{ vars.GCP_REGION }} --format='value(address)')" >> "$GITHUB_ENV" - name: Create instance template for ${{ matrix.network }}