Skip to content

Commit 47190e8

Browse files
Update nbgv_prepare_release.yml
1 parent 0bb9bb2 commit 47190e8

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

.github/workflows/nbgv_prepare_release.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ on:
1313
type: string
1414
required: true
1515
default: patch
16+
version_file_path: # Add this parameter
17+
description: "Path to version.json file (relative to repo root)"
18+
type: string
19+
required: false
20+
default: "version.json"
1621
secrets:
1722
GH_TOKEN:
1823
description: "GitHub token (falls back to github.token if not provided)"
@@ -34,12 +39,20 @@ jobs:
3439
with:
3540
dotnet-version: 9.0.x
3641

42+
- name: 📋 Check version.json exists
43+
run: |
44+
if [ ! -f "${{ inputs.version_file_path }}" ]; then
45+
echo "::error::version.json not found at ${{ inputs.version_file_path }}"
46+
exit 1
47+
fi
48+
cat "${{ inputs.version_file_path }}"
49+
3750
- name: 🛠️ Bump version & create branch
3851
id: nbgv
3952
uses: dotnet/nbgv@master
4053
with:
4154
version-increment: ${{ inputs.increment }}
42-
version-file: version.json
55+
version-file: ${{ inputs.version_file_path }}
4356

4457
outputs:
4558
release_branch: ${{ steps.nbgv.outputs.BranchName }}

0 commit comments

Comments
 (0)