We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fe7a905 commit 027bb4eCopy full SHA for 027bb4e
1 file changed
.github/workflows/semantic-release.yml
@@ -2,6 +2,9 @@ name: semantic-release
2
on:
3
workflow_dispatch:
4
push:
5
+ # Only trigger on merged PRs, not on every PR push
6
+ pull_request:
7
+ types: [closed]
8
branches:
9
- main
10
@@ -13,6 +16,8 @@ jobs:
13
16
semantic-release:
14
17
name: semantic-release
15
18
runs-on: ubuntu-latest
19
+ # Only run on push to main, manual dispatch, or when PR is merged
20
+ if: github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request' && github.event.pull_request.merged == true)
21
outputs:
22
new-release-published: ${{ steps.semantic-release.outputs.new-release-published }}
23
new-release-version: ${{ steps.semantic-release.outputs.new-release-version }}
0 commit comments