Skip to content

Commit 2bc31d1

Browse files
authored
Merge pull request #6 from zrougamed/feature/add-flags
🚀 Add Scheduler Configuration to Dynamic Notification System 🎉
2 parents e5a4042 + c7c6c5c commit 2bc31d1

File tree

1 file changed

+2
-14
lines changed

1 file changed

+2
-14
lines changed

.github/workflows/go.yml

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -37,20 +37,8 @@ jobs:
3737
- name: Generate release tag
3838
id: generate_tag
3939
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
5442
5543
# Step 6: Create Git tag
5644
- name: Create Git tag

0 commit comments

Comments
 (0)