Skip to content

Commit 007f079

Browse files
authored
Fix non nightly workflow (#211)
Issue is resolved where if BENCHMARKS_TAG didn't contain "nightly" the gitlab job workflow couldn't be produced. (hopefully)
1 parent 221bcdd commit 007f079

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

benchmarks/lowq2_reconstruction/config.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ bench:lowq2_reconstruction_retrained:
3939
check:lowq2_reconstruction_retrained:
4040
needs: ["bench:lowq2_reconstruction_retrained"]
4141
stage: benchmarks
42+
rules:
43+
- if: '$BENCHMARKS_TAG =~ /nightly/'
44+
when: on_success
45+
- when: never
4246
script: |
4347
if grep '"fail": 1' results/lowq2_reconstruction/retrained_local/Low-Q2_retrained_Resolution_Results_local.json; then
4448
exit 1
@@ -60,6 +64,10 @@ collect_results:lowq2_reconstruction_retrained:
6064
stage: collect
6165
needs:
6266
- "bench:lowq2_reconstruction_retrained"
67+
rules:
68+
- if: '$BENCHMARKS_TAG =~ /nightly/'
69+
when: on_success
70+
- when: never
6371
script:
6472
- ls -lrht
6573
- mv results{,_save}/ # move results directory out of the way to preserve it
@@ -72,7 +80,7 @@ upload_onnx:lowq2_reconstruction:
7280
needs:
7381
- "check:lowq2_reconstruction_retrained"
7482
rules:
75-
- if: $GITHUB_PR != "" && $GITHUB_REPOSITORY == "eic/epic"
83+
- if: '$BENCHMARKS_TAG =~ /nightly/ && $GITHUB_PR != "" && $GITHUB_REPOSITORY == "eic/epic"'
7684
when: on_success
7785
- if: '$GITHUB_REPOSITORY != "eic/epic"'
7886
when: never

0 commit comments

Comments
 (0)