Skip to content

Commit 1688387

Browse files
committed
feat: add CBW_TRIGGER_ENABLED to toggle promote-on-publish dispatch
- Add repo variable check (default enabled, set false to disable) - Document in contributing/publishing.md
1 parent b6dd74e commit 1688387

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/publishVSCode.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,9 +84,11 @@ jobs:
8484
changeCaseId: ${{ needs.ctc-open.outputs.changeCaseId }}
8585
status: Not Implemented
8686

87+
# Set repo variable CBW_TRIGGER_ENABLED=false to disable dispatch to code-builder-web.
88+
# Default (unset): dispatch after publish. Use when publishing without CBW promotion.
8789
trigger-cbw-release:
8890
needs: [publish, prepare-environment-from-main]
89-
if: needs.publish.result == 'success'
91+
if: needs.publish.result == 'success' && vars.CBW_TRIGGER_ENABLED != 'false'
9092
continue-on-error: true
9193
runs-on: ubuntu-latest
9294
steps:

contributing/publishing.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ find ~/Downloads/v64.8.0 -type f -name "*.vsix" -exec code --install-extension {
8080

8181
After completing your release testing following our internal template, approve the publish job "Publish in Microsoft Marketplace" and "Publish in Open VSX Registry" to allow the extensions to be uploaded and complete the release process.
8282

83+
**Code Builder Web promotion:** After publishing to the MS Marketplace, the workflow dispatches to `code-builder-web` to trigger a CBW release and auto-promote to production. Set repo variable `CBW_TRIGGER_ENABLED=false` (Settings → Secrets and variables → Actions → Variables) to publish without triggering CBW. Default (unset) enables the trigger.
84+
8385
## Troubleshooting
8486

8587
- 401 errors on publish? You probably need to update the VSCE PAT. https://salesforce.quip.com/E8GWA5TuI8jp

0 commit comments

Comments
 (0)