Selaa lähdekoodia

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

Joe Chen 3 päivää sitten
vanhempi
sitoutus
3c2112215f
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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