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.

pull/4508/head
Steve Gilvarry 2025-12-31 07:45:58 +11:00
parent 07bf78b6bf
commit 34e274bbcd
3 changed files with 5 additions and 2 deletions

View File

@ -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

View File

@ -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

View File

@ -9,6 +9,7 @@ permissions:
jobs:
package:
if: github.repository == 'ZoneMinder/zoneminder'
strategy:
matrix:
os_dist: