Skip to content

Commit 20d1840

Browse files
committed
ci: only release preview on manual dispatch from main or v2
1 parent ab42249 commit 20d1840

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ jobs:
248248
uses: actions/dependency-review-action@v3
249249

250250
release-preview:
251-
if: github.event_name == 'workflow_dispatch' || github.ref == 'refs/heads/main' || github.ref == 'refs/heads/v2'
251+
if: github.event_name == 'workflow_dispatch' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/v2')
252252
runs-on: ubuntu-latest
253253
needs: [ validate-nuget, run-test, validate_template, validate-docs ]
254254
steps:

0 commit comments

Comments
 (0)