Skip to content

Commit d044a38

Browse files
committed
chore: update version workflow trigger to push tag
1 parent a92b5a9 commit d044a38

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/update-version.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
name: Update Manifest Version
22

3-
# Trigger this workflow whenever a new release is published on GitHub
3+
# Trigger when a new tag is pushed that starts with 'v'
44
on:
5-
release:
6-
types: [published]
5+
push:
6+
tags:
7+
- 'v*'
78

89
jobs:
910
update-version:
@@ -29,5 +30,5 @@ jobs:
2930
git config user.name "github-actions[bot]"
3031
git config user.email "github-actions[bot]@users.noreply.github.com"
3132
git add custom_components/ha_pocketsmith/manifest.json
32-
git commit -m "Bump version to ${GITHUB_REF_NAME}"
33+
git commit -m "chore: bump version to ${GITHUB_REF_NAME}"
3334
git push

0 commit comments

Comments
 (0)