Skip to content

Commit 9eead72

Browse files
committed
fix syntax
1 parent 0e901a9 commit 9eead72

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

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

Lines changed: 6 additions & 4 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:
@@ -16,6 +15,7 @@ on:
1615

1716
jobs:
1817
create-tag-and-release:
18+
if: github.event.pull_request.merged && startsWith(github.event.pull_request.title, 'chore: bump version')
1919
runs-on: ubuntu-latest
2020
steps:
2121
- name: Checkout code
@@ -46,7 +46,9 @@ jobs:
4646
4747
echo "Final version: $VERSION"
4848
echo "version=$VERSION" >> $GITHUB_OUTPUT
49-
echo "tag_name=v$VERSION" >> $GITHUB_OUTPUT - name: Check if tag exists
49+
echo "tag_name=v$VERSION" >> $GITHUB_OUTPUT
50+
51+
- name: Check if tag exists
5052
id: check_tag
5153
run: |
5254
TAG_NAME="v${{ steps.extract_version.outputs.version }}"

0 commit comments

Comments
 (0)