File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 }}
You can’t perform that action at this time.
0 commit comments