We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0e69062 commit 47792ffCopy full SHA for 47792ff
.github/workflows/Create-NewReleases.yml
@@ -28,9 +28,13 @@ jobs:
28
- name: Determine Next Version Tag
29
id: nextver
30
run: |
31
- TAG=$(git tag --sort=-v:refname | head -n 1)
32
- if [[ $TAG == '' ]]; then
33
- TAG='v0.1.0' # Start from v0.1.0 if no tags are found
+ if [[ -f version.txt ]]; then
+ TAG=$(cat version.txt)
+ else
34
+ TAG=$(git tag --sort=-v:refname | head -n 1)
35
+ if [[ $TAG == '' ]]; then
36
+ TAG='v0.1.0' # Start from v0.1.0 if no tags are found
37
+ fi
38
fi
39
MAJOR=$(echo $TAG | cut -d '.' -f 1 | cut -c 2-)
40
MINOR=$(echo $TAG | cut -d '.' -f 2)
0 commit comments