Просмотр исходного кода

Restrict PR Docker builds to repo owner only

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
tuanchris 5 месяцев назад
Родитель
Сommit
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:
 jobs:
   build-backend:
   build-backend:
+    if: github.event_name != 'pull_request' || github.actor == 'tuanchris'
     runs-on: ubuntu-latest
     runs-on: ubuntu-latest
     permissions:
     permissions:
       contents: read
       contents: read
@@ -70,6 +71,7 @@ jobs:
           cache-to: type=gha,mode=max,scope=backend
           cache-to: type=gha,mode=max,scope=backend
 
 
   build-frontend:
   build-frontend:
+    if: github.event_name != 'pull_request' || github.actor == 'tuanchris'
     runs-on: ubuntu-latest
     runs-on: ubuntu-latest
     permissions:
     permissions:
       contents: read
       contents: read