]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
Disable benchmark on forked repo (#7034)
authorSigbjørn Skjæret <redacted>
Sun, 5 May 2024 11:38:55 +0000 (13:38 +0200)
committerGitHub <redacted>
Sun, 5 May 2024 11:38:55 +0000 (13:38 +0200)
* 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

.github/workflows/bench.yml

index 3e968d17909a42e2db61e58bd6913e3b66945305..de0d994c80e9d94cc587d4cf37d46e3886b45d1f 100644 (file)
@@ -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