mirror of
https://github.com/simstudioai/sim.git
synced 2026-01-07 22:24:06 -05:00
fix(ci): fix trigger version capture
This commit is contained in:
committed by
GitHub
parent
cdfee16b8a
commit
561b6f2778
16
.github/workflows/trigger-deploy.yml
vendored
16
.github/workflows/trigger-deploy.yml
vendored
@@ -45,11 +45,9 @@ jobs:
|
||||
id: deploy-staging
|
||||
working-directory: ./apps/sim
|
||||
run: |
|
||||
OUTPUT=$(npx --yes trigger.dev@4.0.4 deploy -e staging --skip-promotion 2>&1)
|
||||
echo "$OUTPUT"
|
||||
VERSION=$(echo "$OUTPUT" | grep -oP 'Successfully deployed version \K[0-9]+\.[0-9]+' || echo "$OUTPUT" | grep -oP 'version \K[0-9]+\.[0-9]+' | head -1)
|
||||
echo "version=$VERSION" >> $GITHUB_OUTPUT
|
||||
echo "Deployed version: $VERSION"
|
||||
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'
|
||||
@@ -65,11 +63,9 @@ jobs:
|
||||
id: deploy-production
|
||||
working-directory: ./apps/sim
|
||||
run: |
|
||||
OUTPUT=$(npx --yes trigger.dev@4.0.4 deploy --skip-promotion 2>&1)
|
||||
echo "$OUTPUT"
|
||||
VERSION=$(echo "$OUTPUT" | grep -oP 'Successfully deployed version \K[0-9]+\.[0-9]+' || echo "$OUTPUT" | grep -oP 'version \K[0-9]+\.[0-9]+' | head -1)
|
||||
echo "version=$VERSION" >> $GITHUB_OUTPUT
|
||||
echo "Deployed version: $VERSION"
|
||||
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'
|
||||
|
||||
Reference in New Issue
Block a user