File tree Expand file tree Collapse file tree 1 file changed +2
-14
lines changed Expand file tree Collapse file tree 1 file changed +2
-14
lines changed Original file line number Diff line number Diff line change 37
37
- name : Generate release tag
38
38
id : generate_tag
39
39
run : |
40
- git pull
41
- # Fetch the latest tag
42
- latest_tag=$(git describe --tags --abbrev=0 || echo "v0.0.0")
43
- echo "Latest Tag: $latest_tag"
44
-
45
- # Increment version (assumes semantic versioning)
46
- version="${latest_tag#v}" # Strip the "v" prefix
47
- major=$(echo $version | cut -d '.' -f1)
48
- minor=$(echo $version | cut -d '.' -f2)
49
- patch=$(echo $version | cut -d '.' -f3)
50
- new_patch=$((patch + 1))
51
- new_tag="v$major.$minor.$new_patch"
52
- echo "New tag: $new_tag"
53
- echo "RELEASE_TAG=$new_tag" >> $GITHUB_ENV
40
+ RELEASE_TAG=v$(date +'%Y%m%d%H%M%S')
41
+ echo "RELEASE_TAG=$RELEASE_TAG" >> $GITHUB_ENV
54
42
55
43
# Step 6: Create Git tag
56
44
- name : Create Git tag
You can’t perform that action at this time.
0 commit comments