Skip to content

Commit 8f5b574

Browse files
committed
Fix Cloudflare promotion to use version IDs
1 parent 8403962 commit 8f5b574

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎.github/workflows/deploy-cloudflare-worker.yml‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ jobs:
3535
timeout-minutes: 30
3636
permissions:
3737
contents: read
38+
outputs:
39+
version_id: ${{ steps.upload.outputs.version_id }}
40+
version_tag: ${{ steps.upload.outputs.version_tag }}
41+
smoke_base_url: ${{ steps.upload.outputs.smoke_base_url }}
3842
env:
3943
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
4044
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
@@ -157,6 +161,6 @@ jobs:
157161
- name: Verify promotion SHA
158162
run: test "$(git rev-parse HEAD)" = "$GITHUB_SHA"
159163

160-
- run: npm run promote:cloudflare -- "$GITHUB_SHA"
164+
- run: npm run promote:cloudflare -- "${{ needs.build-and-preview.outputs.version_id }}"
161165

162166
- run: npm run smoke:cloudflare -- "$CLOUDFLARE_SMOKE_BASE_URL"

0 commit comments

Comments
 (0)