2
0
Эх сурвалжийг харах

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

Joe Chen 16 цаг өмнө
parent
commit
3c2112215f

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

@@ -14,7 +14,7 @@ on:
 
 
 jobs:
 jobs:
   buildx:
   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:
     concurrency:
       group: ${{ github.workflow }}-${{ github.ref }}
       group: ${{ github.workflow }}-${{ github.ref }}
       cancel-in-progress: true
       cancel-in-progress: true