From d16d7ef706c9562e8136139abf19b0839de34b40 Mon Sep 17 00:00:00 2001 From: Ihor Solodrai Date: Mon, 2 Dec 2024 17:15:28 -0800 Subject: [PATCH] kernel-veristat: set RUN_VERISTAT_META flag depending on repo owner Signed-off-by: Ihor Solodrai --- .github/workflows/kernel-veristat.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/kernel-veristat.yml b/.github/workflows/kernel-veristat.yml index 301c28c..7fddc65 100644 --- a/.github/workflows/kernel-veristat.yml +++ b/.github/workflows/kernel-veristat.yml @@ -38,6 +38,8 @@ jobs: REPO_PATH: "" KBUILD_OUTPUT: kbuild-output/ ARCH_AND_TOOL: ${{ inputs.arch }}-${{ inputs.toolchain }} + # Don't run meta's veristat from forked repos + RUN_VERISTAT_META: ${{ github.repository_owner == 'kernel-patches' && 'true' || '' }} steps: - uses: actions/checkout@v4 - uses: actions/download-artifact@v4 @@ -77,8 +79,7 @@ jobs: vmlinuz: '${{ github.workspace }}/vmlinuz' kernel-root: '.' max-cpu: 8 - # Don't run meta's veristat from forked repo. - kernel-test: ${{ github.event.pull_request.head.repo.full_name == github.repository && 'run_veristat_kernel,run_veristat_meta' || 'run_veristat_kernel' }} + kernel-test: ${{ env.RUN_VERISTAT_META && 'run_veristat_kernel,run_veristat_meta' || 'run_veristat_kernel' }} output-dir: '${{ github.workspace }}' - name: Compare and save veristat.kernel.csv @@ -88,7 +89,7 @@ jobs: baseline_name: ${{ env.ARCH_AND_TOOL}}-baseline-veristat-kernel - name: Compare and save veristat.meta.csv - if: ${{ github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository }} + if: ${{ env.RUN_VERISTAT_META }} uses: ./.github/actions/veristat_baseline_compare with: veristat_output: veristat-meta