Skip to content

Commit 9c8547c

Browse files
committed
Guard marketplace publish against non-main dispatch
1 parent 74b2b4b commit 9c8547c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ jobs:
176176
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
177177

178178
- name: Publish to marketplace
179-
if: ${{ !inputs.dry_run }}
179+
if: ${{ !inputs.dry_run && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main') }}
180180
run: npm run publish -- --packagePath git-crypt-vscode-*.vsix
181181
env:
182182
VSCE_PAT: ${{ secrets.VSCE_PAT }}

0 commit comments

Comments
 (0)