From b0fb44db86d1fa1b2d12f27658d4b9a08c4ea136 Mon Sep 17 00:00:00 2001 From: tooomm Date: Sat, 17 Dec 2022 15:28:32 +0100 Subject: [PATCH] check repo owner --- .github/workflows/cleanup-tags.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cleanup-tags.yml b/.github/workflows/cleanup-tags.yml index 4a5deeb9c..6877e55bb 100644 --- a/.github/workflows/cleanup-tags.yml +++ b/.github/workflows/cleanup-tags.yml @@ -1,7 +1,9 @@ # This workflow runs on certain conditions to check for and potentially # delete container images from the GHCR which no longer have an associated # code branch. -# Requires a PAT with the correct scope set in the secrets +# Requires a PAT with the correct scope set in the secrets. +# +# This workflow will not trigger runs on forked repos. name: Cleanup Image Tags @@ -21,6 +23,7 @@ concurrency: jobs: cleanup-images: name: Cleanup Image Tags for ${{ matrix.primary-name }} + if: github.repository_owner == 'paperless-ngx' runs-on: ubuntu-22.04 strategy: matrix: