Skip to content

Commit 8f615eb

Browse files
committed
Add way to select which commit/tag/branch to build
1 parent 9e14f82 commit 8f615eb

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)
@@ -84,6 +90,7 @@ jobs:
8490
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
8591
with:
8692
repository: numpy/numpy
93+
ref: ${{ env.SOURCE_REF_TO_BUILD }}
8794
path: numpy-src
8895
submodules: true
8996
persist-credentials: false

0 commit comments

Comments
 (0)