File tree Expand file tree Collapse file tree 2 files changed +16
-1
lines changed
Expand file tree Collapse file tree 2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change 88 tags :
99 - ' v*.*.*'
1010 workflow_call :
11+ inputs :
12+ release_version :
13+ description : ' The release version to use (e.g., v1.2.3)'
14+ required : true
15+ type : string
1116
1217jobs :
1318 get-version :
2328 persist-credentials : false
2429 - name : Get release version
2530 id : get_release_version
26- run : echo ::set-output name=release_version::${GITHUB_REF#refs/*/}
31+ run : |
32+ if [[ -n "${{ inputs.release_version }}" ]]; then
33+ echo "Using provided release version: ${{ inputs.release_version }}"
34+ echo "::set-output name=release_version::${{ inputs.release_version }}"
35+ else
36+ echo "No release version provided. Falling back to GITHUB_REF."
37+ echo "::set-output name=release_version::${GITHUB_REF#refs/tags/}"
38+ fi
2739 - name : Get release version without prefix
2840 id : get_release_version_without_prefix
2941 env :
Original file line number Diff line number Diff line change 4242 fi
4343 echo "Validated custom version: ${{ github.event.inputs.custom_version }}"
4444 fi
45+
4546 - name : Get release version
4647 id : get_release_version
4748 run : |
@@ -169,6 +170,8 @@ jobs:
169170
170171 build_wheels :
171172 uses : ./.github/workflows/build_wheels.yml
173+ with :
174+ release_version : ${{ github.event.inputs.custom_version }}
172175
173176 publish-python-sdk :
174177 if : github.repository == 'feast-dev/feast'
You can’t perform that action at this time.
0 commit comments