added only tagging on main dev and staging

This commit is contained in:
2025-10-04 00:23:52 +02:00
parent c395885bbd
commit 45c6e8180c

View File

@@ -105,8 +105,13 @@ jobs:
elif [[ "${GITHUB_REF}" == "refs/heads/development" ]]; then
minor=$((minor + 1))
patch=0
else
elif [[ "${GITHUB_REF}" == "refs/heads/staging" ]]; then
patch=$((patch + 1))
else
echo "Not on main, development, or staging branch. Using latest tag: $latest_tag"
new_tag="$latest_tag"
echo "tag_name=${new_tag}" >> $GITHUB_OUTPUT
exit 0
fi
new_tag="v${major}.${minor}.${patch}"