From c1a3500bde94a59136de0a4e0e671aef5029ed27 Mon Sep 17 00:00:00 2001 From: Siddharth Ganesan <33737564+Sg312@users.noreply.github.com> Date: Tue, 30 Sep 2025 16:36:19 -0700 Subject: [PATCH] fix(ci): capture correct deployment version output (#1512) * Capture correct deployment version output * Add trigger access token to each step * Use correct arn --- .github/workflows/trigger-deploy.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/trigger-deploy.yml b/.github/workflows/trigger-deploy.yml index 96b58fc3d8..93a145019d 100644 --- a/.github/workflows/trigger-deploy.yml +++ b/.github/workflows/trigger-deploy.yml @@ -44,17 +44,17 @@ jobs: if: github.ref == 'refs/heads/staging' id: deploy-staging working-directory: ./apps/sim + env: + TRIGGER_ACCESS_TOKEN: ${{ secrets.TRIGGER_ACCESS_TOKEN }} run: | npx --yes trigger.dev@4.0.4 deploy -e staging --skip-promotion - echo "version=$TRIGGER_DEPLOYMENT_VERSION" >> $GITHUB_OUTPUT - echo "Deployed version: $TRIGGER_DEPLOYMENT_VERSION" - name: Store Staging version in Parameter Store if: github.ref == 'refs/heads/staging' run: | aws ssm put-parameter \ --name "${{ secrets.TRIGGER_VERSION_SECRET_MANAGER_STAGING }}" \ - --value "${{ steps.deploy-staging.outputs.version }}" \ + --value "${{ steps.deploy-staging.outputs.deploymentVersion }}" \ --type "String" \ --overwrite @@ -62,16 +62,16 @@ jobs: if: github.ref == 'refs/heads/main' id: deploy-production working-directory: ./apps/sim + env: + TRIGGER_ACCESS_TOKEN: ${{ secrets.TRIGGER_ACCESS_TOKEN }} run: | npx --yes trigger.dev@4.0.4 deploy --skip-promotion - echo "version=$TRIGGER_DEPLOYMENT_VERSION" >> $GITHUB_OUTPUT - echo "Deployed version: $TRIGGER_DEPLOYMENT_VERSION" - name: Store Production version in Parameter Store if: github.ref == 'refs/heads/main' run: | aws ssm put-parameter \ --name "${{ secrets.TRIGGER_VERSION_SECRET_MANAGER_PROD }}" \ - --value "${{ steps.deploy-production.outputs.version }}" \ + --value "${{ steps.deploy-production.outputs.deploymentVersion }}" \ --type "String" \ --overwrite \ No newline at end of file