Skip to content

Commit c1a3500

Browse files
authored
fix(ci): capture correct deployment version output (#1512)
* Capture correct deployment version output * Add trigger access token to each step * Use correct arn
1 parent 561b6f2 commit c1a3500

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/trigger-deploy.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -44,34 +44,34 @@ jobs:
4444
if: github.ref == 'refs/heads/staging'
4545
id: deploy-staging
4646
working-directory: ./apps/sim
47+
env:
48+
TRIGGER_ACCESS_TOKEN: ${{ secrets.TRIGGER_ACCESS_TOKEN }}
4749
run: |
4850
npx --yes [email protected] deploy -e staging --skip-promotion
49-
echo "version=$TRIGGER_DEPLOYMENT_VERSION" >> $GITHUB_OUTPUT
50-
echo "Deployed version: $TRIGGER_DEPLOYMENT_VERSION"
5151
5252
- name: Store Staging version in Parameter Store
5353
if: github.ref == 'refs/heads/staging'
5454
run: |
5555
aws ssm put-parameter \
5656
--name "${{ secrets.TRIGGER_VERSION_SECRET_MANAGER_STAGING }}" \
57-
--value "${{ steps.deploy-staging.outputs.version }}" \
57+
--value "${{ steps.deploy-staging.outputs.deploymentVersion }}" \
5858
--type "String" \
5959
--overwrite
6060
6161
- name: Deploy to Trigger.dev (Production)
6262
if: github.ref == 'refs/heads/main'
6363
id: deploy-production
6464
working-directory: ./apps/sim
65+
env:
66+
TRIGGER_ACCESS_TOKEN: ${{ secrets.TRIGGER_ACCESS_TOKEN }}
6567
run: |
6668
npx --yes [email protected] deploy --skip-promotion
67-
echo "version=$TRIGGER_DEPLOYMENT_VERSION" >> $GITHUB_OUTPUT
68-
echo "Deployed version: $TRIGGER_DEPLOYMENT_VERSION"
6969
7070
- name: Store Production version in Parameter Store
7171
if: github.ref == 'refs/heads/main'
7272
run: |
7373
aws ssm put-parameter \
7474
--name "${{ secrets.TRIGGER_VERSION_SECRET_MANAGER_PROD }}" \
75-
--value "${{ steps.deploy-production.outputs.version }}" \
75+
--value "${{ steps.deploy-production.outputs.deploymentVersion }}" \
7676
--type "String" \
7777
--overwrite

0 commit comments

Comments
 (0)