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