File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -81,16 +81,18 @@ jobs:
8181 id : prepare
8282 run : |
8383 cd "$GITHUB_WORKSPACE"
84-
8584 git config user.name "release-bot"
8685 git config user.email "release-bot@users.noreply.github.com"
87-
88- # Use --project . to point at the root (where your version.json lives)
89- # and pass your increment directly.
90- dotnet nbgv prepare-release \
91- --project . \
92- --versionIncrement ${{ inputs.increment }}
93-
86+
87+ INC=${{ inputs.increment }}
88+ case "$INC" in
89+ major) FLAGS="--versionIncrement major" ;;
90+ minor) FLAGS="--versionIncrement minor" ;;
91+ patch) FLAGS="" ;;
92+ *) echo "Invalid increment: $INC" && exit 1 ;;
93+ esac
94+
95+ dotnet nbgv prepare-release --project . $FLAGS
9496 echo "release_branch=$(git rev-parse --abbrev-ref HEAD)" >> "$GITHUB_OUTPUT"
9597
9698 # 4️⃣ Push branches & tags; open draft PR back to target_branch
You can’t perform that action at this time.
0 commit comments