summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSigbjørn Skjæret <sigbjorn.skjaeret@scala.com>2024-05-05 13:38:55 +0200
committerGitHub <noreply@github.com>2024-05-05 13:38:55 +0200
commit8f8acc8683a00ce40fa5a81161a079d2167126e6 (patch)
tree13a624e484b892ab5a071a4773ae24775f77011b
parentca3632602091e959ed2ad4c09c67a7c790b10d31 (diff)
Disable benchmark on forked repo (#7034)
* Disable benchmark on forked repo * only check owner on schedule event * check owner on push also * more readable as multi-line * ternary won't work * style++ * test++ * enable actions debug * test-- * remove debug * test++ * do debug where we can get logs * test-- * this is driving me crazy * correct github.event usage * remove test condition * correct github.event usage * test++ * test-- * event_name is pull_request_target * test++ * test-- * update ref checks
-rw-r--r--.github/workflows/bench.yml14
1 files changed, 13 insertions, 1 deletions
diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml
index 3e968d17..de0d994c 100644
--- a/.github/workflows/bench.yml
+++ b/.github/workflows/bench.yml
@@ -52,7 +52,19 @@ jobs:
ftype: q4_0
pr_comment_enabled: "true"
- if: ${{ github.event.inputs.gpu-series == 'Standard_NC4as_T4_v3' || github.event.schedule || github.event.pull_request || github.head_ref == 'master' || github.ref_name == 'master' || github.event.push.ref == 'refs/heads/master' }}
+ if: |
+ inputs.gpu-series == 'Standard_NC4as_T4_v3'
+ || (
+ github.event_name == 'schedule'
+ && github.ref_name == 'master'
+ && github.repository_owner == 'ggerganov'
+ )
+ || github.event_name == 'pull_request_target'
+ || (
+ github.event_name == 'push'
+ && github.event.ref == 'refs/heads/master'
+ && github.repository_owner == 'ggerganov'
+ )
steps:
- name: Clone
id: checkout