Переглянути джерело

Restrict PR Docker builds to repo owner only

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
tuanchris 5 місяців тому
батько
коміт
57640f49d2
1 змінених файлів з 2 додано та 0 видалено
  1. 2 0
      .github/workflows/docker-publish.yml

+ 2 - 0
.github/workflows/docker-publish.yml

@@ -32,6 +32,7 @@ env:
 
 jobs:
   build-backend:
+    if: github.event_name != 'pull_request' || github.actor == 'tuanchris'
     runs-on: ubuntu-latest
     permissions:
       contents: read
@@ -70,6 +71,7 @@ jobs:
           cache-to: type=gha,mode=max,scope=backend
 
   build-frontend:
+    if: github.event_name != 'pull_request' || github.actor == 'tuanchris'
     runs-on: ubuntu-latest
     permissions:
       contents: read