Skip to content

A self-hosted media server and file management system

fix: avoid increasing patch number when pushing to dev directly

aminnausin6c895101905f
diff --git a/.github/workflows/ci-docker-release.yml b/.github/workflows/ci-docker-release.yml
index c91afde8..13ca5c7b 100644
--- a/.github/workflows/ci-docker-release.yml
+++ b/.github/workflows/ci-docker-release.yml
@@ -180,7 +180,10 @@ jobs:
TAG=""
if [[ "${{ github.ref }}" == "refs/heads/dev" ]]; then
- PATCH=$((PATCH + 1))
+ IS_MERGE=$(git log -1 --pretty=%P | wc -w)
+ if [ "$IS_MERGE" -gt 1 ]; then
+ PATCH=$((PATCH + 1))
+ fi)
NEW_VERSION="$MAJOR.$MINOR.$PATCH"
TAG="${NEW_VERSION}-beta.${BUILD_COUNT}"
DOCKER_TAG="beta"