diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-08-28 18:05:29 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-08-28 18:05:29 +0300 |
| commit | 13a9f6402fb77a31499bf758b56ca42b79936706 (patch) | |
| tree | 316d09503e8ac6fe05084be3800c15920a200271 /.github/workflows/preview.yml | |
| parent | c5051933f812a07e8014cd11dde2e2caac3af84c (diff) | |
ci: restrict release workflows to canonical repository
Diffstat (limited to '.github/workflows/preview.yml')
| -rw-r--r-- | .github/workflows/preview.yml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index e5e8c3f7..f2314dcf 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -21,6 +21,7 @@ concurrency: jobs: preflight: + if: github.repository == 'herdrdev/herdr' runs-on: ubuntu-latest permissions: contents: read @@ -118,7 +119,7 @@ jobs: build: needs: preflight - if: needs.preflight.outputs.should_publish == 'true' + if: github.repository == 'herdrdev/herdr' && needs.preflight.outputs.should_publish == 'true' permissions: contents: read strategy: @@ -284,7 +285,7 @@ jobs: publish: needs: [preflight, build] - if: needs.preflight.outputs.should_publish == 'true' + if: github.repository == 'herdrdev/herdr' && needs.preflight.outputs.should_publish == 'true' runs-on: ubuntu-latest concurrency: group: docs-publish-master |
