From 2712cb1447a78891165dffbff62832b7b271faf7 Mon Sep 17 00:00:00 2001 From: Areeb Ahmed Date: Fri, 15 May 2026 23:35:50 +0300 Subject: [PATCH 1/2] skip job in forks --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f5848a4a6..5d080d837 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -111,7 +111,7 @@ jobs: cache-to: type=gha,mode=min,scope=buildx build-and-push-image: - if: github.event_name != 'pull_request' + if: github.event_name != 'pull_request' && github.repository == 'docker/docker-agent' needs: [lint, build-and-test, license-check] runs-on: ubuntu-latest steps: From d49ebad64f36cc97ba83189090c4b423bf4bccfd Mon Sep 17 00:00:00 2001 From: Areeb Ahmed Date: Mon, 18 May 2026 09:31:11 +0300 Subject: [PATCH 2/2] update event condition --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5d080d837..5f2086792 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -111,7 +111,7 @@ jobs: cache-to: type=gha,mode=min,scope=buildx build-and-push-image: - if: github.event_name != 'pull_request' && github.repository == 'docker/docker-agent' + if: github.event_name != 'pull_request' && !github.event.repository.fork needs: [lint, build-and-test, license-check] runs-on: ubuntu-latest steps: