Skip to content

Commit 58f74a6

Browse files
committed
Trigger based on label
1 parent 178a4fd commit 58f74a6

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/downstream.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ name: Downstream
22

33
on:
44
workflow_dispatch:
5+
pull_request:
6+
types: [labeled]
57

68
permissions:
79
contents: read
@@ -13,6 +15,7 @@ concurrency:
1315
jobs:
1416
xarray:
1517
name: Xarray zarr backend tests
18+
if: github.event_name == 'workflow_dispatch' || github.event.label.name == 'run-downstream'
1619
runs-on: ubuntu-latest
1720
steps:
1821
- name: Check out zarr-python
@@ -55,6 +58,7 @@ jobs:
5558
5659
numcodecs:
5760
name: numcodecs zarr3 codec tests
61+
if: github.event_name == 'workflow_dispatch' || github.event.label.name == 'run-downstream'
5862
runs-on: ubuntu-latest
5963
steps:
6064
- name: Check out zarr-python

.github/workflows/prepare_release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,5 @@ jobs:
7373
- [ ] Downstream tests pass (see [downstream workflow](https://github.com/zarr-developers/zarr-python/actions/workflows/downstream.yml))
7474
- [ ] Merge this PR, then [draft a GitHub Release](https://github.com/zarr-developers/zarr-python/releases/new) targeting `${{ inputs.target_branch }}` with tag `v${{ inputs.version }}`
7575
commit-message: "chore: build changelog for v${{ inputs.version }}"
76+
labels: run-downstream
7677
delete-branch: true

0 commit comments

Comments
 (0)