Skip to content

Commit 16642f6

Browse files
committed
fix: apply --err flag only on manual workflow dispatch
1 parent 0dbf27f commit 16642f6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/benchmarks.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ jobs:
7979
--threshold-max-sample-size 64 \
8080
--threshold-upper-boundary 0.99 \
8181
--thresholds-reset \
82-
--err \
82+
${{ github.event_name == 'workflow_dispatch' && '--err' || '' }} \
8383
--adapter rust_criterion \
8484
--github-actions "${{ secrets.GITHUB_TOKEN }}" \
8585
"cargo bench --manifest-path benches/Cargo.toml --bench historic_scanning"
@@ -130,7 +130,7 @@ jobs:
130130
--threshold-max-sample-size 64 \
131131
--threshold-upper-boundary 0.99 \
132132
--thresholds-reset \
133-
--err \
133+
${{ github.event_name == 'workflow_dispatch' && '--err' || '' }} \
134134
--adapter rust_criterion \
135135
--github-actions "${{ secrets.GITHUB_TOKEN }}" \
136136
"cargo bench --manifest-path benches/Cargo.toml --bench latest_events_scanning"

0 commit comments

Comments
 (0)