diff --git a/.github/workflows/deploy-notify.yml b/.github/workflows/deploy-notify.yml index 5e63d1c..3fab2e2 100644 --- a/.github/workflows/deploy-notify.yml +++ b/.github/workflows/deploy-notify.yml @@ -5,7 +5,15 @@ on: # 6pm ET (EDT = 22:00 UTC, EST = 23:00 UTC) - cron: "0 22 * * *" - cron: "0 23 * * *" - workflow_dispatch: {} + workflow_dispatch: + inputs: + bump: + description: "Version bump type" + type: choice + options: + - patch + - minor + default: patch permissions: contents: write @@ -62,10 +70,16 @@ jobs: echo "has_changes=true" >> "$GITHUB_OUTPUT" - # Auto-increment minor version (v1.7.0 -> v1.8.0) + # Semver bump (default: patch) + BUMP="${{ github.event.inputs.bump || 'patch' }}" MAJOR=$(echo "$LAST_TAG" | sed 's/^v//' | cut -d. -f1) MINOR=$(echo "$LAST_TAG" | sed 's/^v//' | cut -d. -f2) - VERSION="v${MAJOR}.$((MINOR + 1)).0" + PATCH=$(echo "$LAST_TAG" | sed 's/^v//' | cut -d. -f3) + if [ "$BUMP" = "minor" ]; then + VERSION="v${MAJOR}.$((MINOR + 1)).0" + else + VERSION="v${MAJOR}.${MINOR}.$((PATCH + 1))" + fi echo "version=$VERSION" >> "$GITHUB_OUTPUT" # Build bullet lists from PR titles