From 34e274bbcda832abc028e249ac8f1c21875bfcc0 Mon Sep 17 00:00:00 2001 From: Steve Gilvarry Date: Wed, 31 Dec 2025 07:45:58 +1100 Subject: [PATCH] Prevent packaging runs outside of Zoneminder\zoneminder repo. I noted that on my fork these workflows are running and failing, well maybe not aarch64 it is just waiting for a runner. --- .github/workflows/build-native-packages-aarch64.yml | 3 ++- .github/workflows/build-native-packages.yml | 3 ++- .github/workflows/create-packages.yml | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-native-packages-aarch64.yml b/.github/workflows/build-native-packages-aarch64.yml index 5f4f3b6b9..eba2f1519 100644 --- a/.github/workflows/build-native-packages-aarch64.yml +++ b/.github/workflows/build-native-packages-aarch64.yml @@ -19,6 +19,7 @@ env: jobs: build-debian: name: Build & sign .deb (${{ matrix.distro }}) + if: github.repository == 'ZoneMinder/zoneminder' strategy: fail-fast: false matrix: @@ -134,7 +135,7 @@ jobs: release: name: Create GitHub Release (on tag) needs: build-debian - if: startsWith(github.ref, 'refs/tags/') + if: github.repository == 'ZoneMinder/zoneminder' && startsWith(github.ref, 'refs/tags/') runs-on: ubuntu-latest steps: - name: Download artifacts diff --git a/.github/workflows/build-native-packages.yml b/.github/workflows/build-native-packages.yml index 0aca16639..a52589f29 100644 --- a/.github/workflows/build-native-packages.yml +++ b/.github/workflows/build-native-packages.yml @@ -18,6 +18,7 @@ env: jobs: build-debian: name: Build & sign .deb (${{ matrix.distro }}) + if: github.repository == 'ZoneMinder/zoneminder' runs-on: ubuntu-latest strategy: fail-fast: false @@ -130,7 +131,7 @@ jobs: release: name: Create GitHub Release (on tag) needs: build-debian - if: startsWith(github.ref, 'refs/tags/') + if: github.repository == 'ZoneMinder/zoneminder' && startsWith(github.ref, 'refs/tags/') runs-on: ubuntu-latest steps: - name: Download artifacts diff --git a/.github/workflows/create-packages.yml b/.github/workflows/create-packages.yml index 4bd7f4a34..b6696f9c0 100644 --- a/.github/workflows/create-packages.yml +++ b/.github/workflows/create-packages.yml @@ -9,6 +9,7 @@ permissions: jobs: package: + if: github.repository == 'ZoneMinder/zoneminder' strategy: matrix: os_dist: