Skip to content

Commit 508b7a7

Browse files
edolstragrahamc
andauthored
Trigger flake_regressions from a label
Co-authored-by: Graham Christensen <graham@grahamc.com>
1 parent 6023688 commit 508b7a7

1 file changed

Lines changed: 16 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,14 @@ jobs:
8989
| ".#hydraJobs.tests." + .')
9090
9191
flake_regressions:
92-
#if: github.event_name == 'merge_group'
92+
if: |
93+
github.event_name == 'merge_group'
94+
|| (
95+
github.event.pull_request.head.repo.full_name == 'DeterminateSystems/nix-src'
96+
&& (
97+
(github.event.action == 'labeled' && github.event.label.name == 'flake-regression-test')
98+
|| (github.event.action != 'labeled' && contains(github.event.pull_request.labels.*.name, 'flake-regression-test'))
99+
)
93100
needs: build_x86_64-linux
94101
runs-on: namespace-profile-x86-32cpu-64gb
95102
steps:
@@ -112,7 +119,14 @@ jobs:
112119
- run: nix build -L --out-link ./new-nix && PATH=$(pwd)/new-nix/bin:$PATH PARALLEL="-P 50%" flake-regressions/eval-all.sh
113120

114121
flake_regressions_lazy:
115-
#if: github.event_name == 'merge_group'
122+
if: |
123+
github.event_name == 'merge_group'
124+
|| (
125+
github.event.pull_request.head.repo.full_name == 'DeterminateSystems/nix-src'
126+
&& (
127+
(github.event.action == 'labeled' && github.event.label.name == 'flake-regression-test')
128+
|| (github.event.action != 'labeled' && contains(github.event.pull_request.labels.*.name, 'flake-regression-test'))
129+
)
116130
needs: build_x86_64-linux
117131
runs-on: namespace-profile-x86-32cpu-64gb
118132
steps:

0 commit comments

Comments
 (0)