Skip to content

Commit a347643

Browse files
authored
Merge pull request #5 from zrougamed/feature/add-flags
🚀 Add Scheduler Configuration to Dynamic Notification System 🎉
2 parents 6aaad83 + 3b50c14 commit a347643

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/go.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,14 @@ jobs:
4242
echo "Latest Tag: $latest_tag"
4343
4444
# Increment version (assumes semantic versioning)
45-
IFS='.' read -r -a version_parts <<< "${latest_tag#v}"
46-
major=${version_parts[0]}
47-
minor=${version_parts[1]}
48-
patch=${version_parts[2]}
49-
RELEASE_TAG="v$major.$minor.$((patch + 1))"
50-
51-
52-
echo "RELEASE_TAG=$RELEASE_TAG" >> $GITHUB_ENV
45+
version="${latest_tag#v}" # Strip the "v" prefix
46+
major=$(echo $version | cut -d '.' -f1)
47+
minor=$(echo $version | cut -d '.' -f2)
48+
patch=$(echo $version | cut -d '.' -f3)
49+
new_patch=$((patch + 1))
50+
new_tag="v$major.$minor.$new_patch"
51+
echo "New tag: $new_tag"
52+
echo "RELEASE_TAG=$new_tag" >> $GITHUB_ENV
5353
5454
# Step 6: Create Git tag
5555
- name: Create Git tag

0 commit comments

Comments
 (0)