]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
check repo owner
authortooomm <tooomm@users.noreply.github.com>
Sat, 17 Dec 2022 14:28:32 +0000 (15:28 +0100)
committerTrenton H <797416+stumpylog@users.noreply.github.com>
Sat, 24 Dec 2022 02:46:52 +0000 (18:46 -0800)
.github/workflows/cleanup-tags.yml

index 4a5deeb9ca5e9f15a50fc8db969f1e23033aa8d5..6877e55bb3d24bdb2abfd5316885a04e2d88e319 100644 (file)
@@ -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: