chore: update release workflow conditions and add dry run for non-dispatch events

This commit is contained in:
vincent-herlemont
2025-06-19 10:33:21 +09:00
parent c177e97857
commit 65f3db92c6
@@ -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