Skip to content

Commit 3649554

Browse files
chore: Updating build_wheels to accept input from publish workflow
Signed-off-by: Francisco Javier Arceo <farceo@redhat.com>
1 parent 8e4b09b commit 3649554

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

.github/workflows/build_wheels.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ on:
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

1217
jobs:
1318
get-version:
@@ -23,7 +28,14 @@ jobs:
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:

.github/workflows/publish.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ jobs:
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'

0 commit comments

Comments
 (0)