mirror of
https://github.com/Drop-OSS/drop.git
synced 2026-07-27 02:04:39 +10:00
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
|
name: Release
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [build_test_common_os]
|
needs: [build_test_common_os]
|
||||||
if: github.ref == 'refs/heads/main' && github.event_name == 'workflow_dispatch'
|
if: github.ref == 'refs/heads/main'
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
packages: write
|
packages: write
|
||||||
@@ -55,6 +55,7 @@ jobs:
|
|||||||
- name: Semantic Release
|
- name: Semantic Release
|
||||||
uses: cycjimmy/semantic-release-action@v4
|
uses: cycjimmy/semantic-release-action@v4
|
||||||
with:
|
with:
|
||||||
|
dry_run: ${{ github.event_name != 'workflow_dispatch' }}
|
||||||
extra_plugins: |
|
extra_plugins: |
|
||||||
@semantic-release/commit-analyzer
|
@semantic-release/commit-analyzer
|
||||||
@semantic-release/release-notes-generator
|
@semantic-release/release-notes-generator
|
||||||
|
|||||||
Reference in New Issue
Block a user