瀏覽代碼

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