소스 검색

ci: only run Docker job for the main repository (#7980)

Joe Chen 3 일 전
부모
커밋
3c2112215f
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      .github/workflows/docker.yml

+ 1 - 1
.github/workflows/docker.yml

@@ -14,7 +14,7 @@ on:
 
 jobs:
   buildx:
-    if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
+    if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' && github.repository == 'gogs/gogs' }}
     concurrency:
       group: ${{ github.workflow }}-${{ github.ref }}
       cancel-in-progress: true