Skip to content

Commit e3b396f

Browse files
committed
fix: only run test workflows on manual dispatch
The test workflows were failing on push because workflow_dispatch inputs are not available in push events. These workflows are only meant to be run manually for testing purposes.
1 parent 7ee71a4 commit e3b396f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/test-vscode-workflows.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ on:
2727
jobs:
2828
test-nightly-workflow:
2929
name: Test Nightly Workflow (Dry Run)
30-
if: inputs.test-workflow == 'nightly' || inputs.test-workflow == 'both'
30+
if: github.event_name == 'workflow_dispatch' && (inputs.test-workflow == 'nightly' || inputs.test-workflow == 'both')
3131
uses: ./.github/workflows/vscode/publish-extensions.yml
3232
with:
3333
# Test parameters - use dry-run to avoid actual publishing
@@ -42,7 +42,7 @@ jobs:
4242

4343
test-prerelease-promotion:
4444
name: Test Prerelease Promotion (Dry Run)
45-
if: inputs.test-workflow == 'prerelease' || inputs.test-workflow == 'both'
45+
if: github.event_name == 'workflow_dispatch' && (inputs.test-workflow == 'prerelease' || inputs.test-workflow == 'both')
4646
uses: ./.github/workflows/vscode/promote-prerelease.yml
4747
with:
4848
min-tag-age-days: '7'

0 commit comments

Comments
 (0)