Skip to content

Commit 31076d2

Browse files
committed
Fix common-wheel-build github ref in CI workflows
1 parent c596830 commit 31076d2

File tree

4 files changed

+12
-2
lines changed

4 files changed

+12
-2
lines changed

.github/actions/common-wheel-build/action.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,22 @@ inputs:
55
python-version:
66
description: The Python version to setup
77
required: true
8+
github_ref:
9+
description: The GitHub ref (branch name)
10+
required: true
11+
default: ${{ github.ref }}
812

913
runs:
1014
using: "composite"
1115
steps:
1216
- name: Update version in pyproject.toml
13-
if: github.ref != 'refs/heads/master'
17+
if: inputs.github_ref != 'refs/heads/master'
1418
shell: bash
1519
run: |
1620
bash ./scripts/ci/update-pyproject-version.sh
1721
1822
- name: Generate updated lock file
19-
if: github.ref != 'refs/heads/master'
23+
if: inputs.github_ref != 'refs/heads/master'
2024
shell: bash
2125
run: uv lock --no-upgrade
2226

.github/workflows/build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ jobs:
104104
uses: ./.github/actions/common-wheel-build
105105
with:
106106
python-version: ${{ matrix.python-version }}
107+
github_ref: ${{ github.ref }}
107108

108109
- name: Run tests
109110
run: |
@@ -184,6 +185,7 @@ jobs:
184185
uses: ./.github/actions/common-wheel-build
185186
with:
186187
python-version: ${{ matrix.python-version }}
188+
github_ref: ${{ github.ref }}
187189

188190
- name: Run tests
189191
run: |
@@ -240,6 +242,7 @@ jobs:
240242
uses: ./.github/actions/common-wheel-build
241243
with:
242244
python-version: ${{ matrix.python-version }}
245+
github_ref: ${{ github.ref }}
243246

244247
- name: Run tests
245248
run: |
@@ -293,6 +296,7 @@ jobs:
293296
uses: ./.github/actions/common-wheel-build
294297
with:
295298
python-version: ${{ matrix.python-version }}
299+
github_ref: ${{ github.ref }}
296300

297301
- name: Cached test data
298302
uses: ./.github/actions/common-test-data

.github/workflows/performance.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ jobs:
6969
uses: ./.github/actions/common-wheel-build
7070
with:
7171
python-version: ${{ matrix.python-version }}
72+
github_ref: ${{ github.ref }}
7273

7374
# Run codspeed once only
7475
- name: Run benchmarks

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ jobs:
161161
uses: ./.github/actions/common-wheel-build
162162
with:
163163
python-version: ${{ matrix.python-version }}
164+
github_ref: ${{ github.ref }}
164165

165166
- name: Set release output
166167
id: vars

0 commit comments

Comments
 (0)