From 6c0791e2140f4cc4dc76d173860f0cd70a81441a Mon Sep 17 00:00:00 2001 From: "Lim, Thing-han" <15379156+potsrevennil@users.noreply.github.com> Date: Wed, 26 Jun 2024 11:06:48 +0800 Subject: [PATCH] use github.event.label for checking bench workflow trigger (#77) Signed-off-by: Thing-han, Lim <15379156+potsrevennil@users.noreply.github.com> --- .github/workflows/bench.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/bench.yml b/.github/workflows/bench.yml index 8651fab63..02ed5017e 100644 --- a/.github/workflows/bench.yml +++ b/.github/workflows/bench.yml @@ -10,7 +10,7 @@ on: jobs: bench: runs-on: self-hosted-rpi4 - if: github.repository_owner == 'pq-code-package' && (contains(github.event.pull_request.labels.*.name, 'benchmark') || github.ref == 'refs/heads/main') + if: github.repository_owner == 'pq-code-package' && (github.event.label.name == 'benchmark' || github.ref == 'refs/heads/main') steps: - uses: actions/checkout@v4 - name: Setup nix