Skip to content

Commit f433f26

Browse files
author
Mindee
committed
test
1 parent ba0fa1e commit f433f26

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/tag-version.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Tag Version
2+
3+
on:
4+
push:
5+
branches:
6+
- tag-test
7+
8+
jobs:
9+
tag-version:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
14+
- name: Get version
15+
id: get_version
16+
run: |
17+
msg_start=':bookmark: Version '
18+
version=$(\
19+
git log -1 --skip=0 --pretty=%s |\
20+
grep -oP "(?<=${msg_start})[0-9]{1,}\.[0-9]{1,}\.[0-9]{1,}" |\
21+
true\
22+
)
23+
echo $version

0 commit comments

Comments
 (0)