Skip to content

Commit 3683729

Browse files
committed
ENH: add way to select which commit/tag/branch to build
1 parent 67bf42c commit 3683729

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/wheels.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
name: Publish sdist and wheels
22

3+
env:
4+
# A tag or branch name or a commit hash for the numpy/numpy repo, for which
5+
# to build wheels. This is normally set to `main` in the main branch of this
6+
# repo, and to a tag name (e.g., `v2.3.2`) on a release branch.
7+
SOURCE_REF_TO_BUILD: main
8+
39
on:
410
schedule:
511
# ┌───────────── minute (0 - 59)
@@ -86,6 +92,7 @@ jobs:
8692
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
8793
with:
8894
repository: numpy/numpy
95+
ref: ${{ env.SOURCE_REF_TO_BUILD }}
8996
path: numpy-src
9097
submodules: true
9198
persist-credentials: false

0 commit comments

Comments
 (0)