Skip to content

Commit 0d4a48b

Browse files
committed
only run this workflow when merging a bump version PR
1 parent e909759 commit 0d4a48b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/version-tag-and-release-notes.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
name: Version Tag and Release Notes
22

33
on:
4-
push:
4+
pull_request:
5+
types: [closed]
56
branches:
67
- main
7-
paths:
8-
- 'versions.json'
98

109
workflow_dispatch:
1110
inputs:
@@ -17,6 +16,7 @@ on:
1716
jobs:
1817
create-tag-and-release:
1918
runs-on: ubuntu-latest
19+
if: github.event.pull_request.merged == true && startsWith(github.event.pull_request.title, 'chore: bump version')
2020
steps:
2121
- name: Checkout code
2222
uses: actions/checkout@v4

0 commit comments

Comments
 (0)