added only tagging on main dev and staging
This commit is contained in:
7
.github/workflows/build.yml
vendored
7
.github/workflows/build.yml
vendored
@@ -105,8 +105,13 @@ jobs:
|
|||||||
elif [[ "${GITHUB_REF}" == "refs/heads/development" ]]; then
|
elif [[ "${GITHUB_REF}" == "refs/heads/development" ]]; then
|
||||||
minor=$((minor + 1))
|
minor=$((minor + 1))
|
||||||
patch=0
|
patch=0
|
||||||
else
|
elif [[ "${GITHUB_REF}" == "refs/heads/staging" ]]; then
|
||||||
patch=$((patch + 1))
|
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
|
fi
|
||||||
|
|
||||||
new_tag="v${major}.${minor}.${patch}"
|
new_tag="v${major}.${minor}.${patch}"
|
||||||
|
Reference in New Issue
Block a user