From 50acbb499d0fd6c3d060cd7bc3d715e6ed780b5c Mon Sep 17 00:00:00 2001 From: Andrew Scheller Date: Wed, 3 Mar 2021 14:27:02 +0000 Subject: [PATCH] Attempt to prevent workflows being triggered on forks --- .github/workflows/cmake.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 780792a..9f37622 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -7,6 +7,7 @@ env: jobs: build: + if: github.repository_owner == 'raspberrypi' runs-on: [self-hosted, Linux, X64] steps: @@ -45,4 +46,4 @@ jobs: working-directory: ${{github.workspace}}/build shell: bash # Execute the build. You can specify a specific target with "--target " - run: cmake --build . --config $BUILD_TYPE --parallel ${{steps.core_count.outputs.output}} \ No newline at end of file + run: cmake --build . --config $BUILD_TYPE --parallel ${{steps.core_count.outputs.output}}