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

This commit is contained in:
Joe Chen
2025-06-08 17:19:48 -04:00
committed by GitHub
parent 9db5c30c36
commit 3c2112215f

View File

@@ -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