From 17b2905b5cd683e6337ce8cbf14bdaf14a5fd47e Mon Sep 17 00:00:00 2001 From: Manuel Mendez Date: Thu, 23 Jul 2026 15:19:56 -0400 Subject: [PATCH] ci: Fix CLI release workflow trigger The trigger wasn't being gated the same way the tag creation was which looks like was causing issues when amd64 ran before arm64. In that case we would not create a tag but still try to trigger the release workflow which would fail on missing tag. I chose to combine both steps into one instead of fixing the `if:` because there's no benefit to separating them out like they were. --- .github/workflows/ami-release-nix.yml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ami-release-nix.yml b/.github/workflows/ami-release-nix.yml index 947b09af1..6052f0ad4 100644 --- a/.github/workflows/ami-release-nix.yml +++ b/.github/workflows/ami-release-nix.yml @@ -204,7 +204,7 @@ jobs: tag_name: ${{ env.RELEASE_TAG }} target_commitish: ${{ github.sha }} - - name: Create CLI tag for PG 17 + - name: Create CLI tag for PG 17 & Trigger Release if: matrix.postgres_version == '17' && matrix.target.arch == 'arm64' && github.event_name != 'workflow_dispatch' env: GH_TOKEN: ${{ github.token }} @@ -214,12 +214,7 @@ jobs: git tag "${CLI_TAG}" "${{ github.sha }}" git push origin "${CLI_TAG}" - - name: Trigger CLI release workflow for PG 17 - if: matrix.postgres_version == '17' && github.event_name != 'workflow_dispatch' - env: - GH_TOKEN: ${{ github.token }} - run: | - CLI_TAG="v${POSTGRES_SUPABASE_VERSION}-cli" + echo "Triggering Release Workflow: ${CLI_TAG}" gh workflow run cli-release.yml \ --ref "${CLI_TAG}" \ -f version="${CLI_TAG}"