chore: update release workflow conditions and add dry run for non-dispatch events
This commit is contained in:
@@ -36,7 +36,7 @@ jobs:
|
||||
name: Release
|
||||
runs-on: ubuntu-latest
|
||||
needs: [build_test_common_os]
|
||||
if: github.ref == 'refs/heads/main' && github.event_name == 'workflow_dispatch'
|
||||
if: github.ref == 'refs/heads/main'
|
||||
permissions:
|
||||
contents: write
|
||||
packages: write
|
||||
@@ -55,6 +55,7 @@ jobs:
|
||||
- name: Semantic Release
|
||||
uses: cycjimmy/semantic-release-action@v4
|
||||
with:
|
||||
dry_run: ${{ github.event_name != 'workflow_dispatch' }}
|
||||
extra_plugins: |
|
||||
@semantic-release/commit-analyzer
|
||||
@semantic-release/release-notes-generator
|
||||
|
||||
Reference in New Issue
Block a user