Skip to content

Commit

Permalink
ci: only release preview on manual dispatch from main or v2
Browse files Browse the repository at this point in the history
  • Loading branch information
egil authored Dec 17, 2023
1 parent ab42249 commit cbb9b41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ jobs:
uses: actions/dependency-review-action@v3

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

0 comments on commit cbb9b41

Please sign in to comment.