From 3304f09b1df657aafd8ae499832dd4d9f6b2413d Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Wed, 2 Sep 2026 01:45:32 +0000 Subject: [PATCH] Fix Auto Docker workflow failing on pull requests The publish workflow bumps VERSION, pushes commits/tags, and publishes images. It must not run on pull_request events where checkout is a detached HEAD and git push fails. PR validation is already covered by ci.yml. Co-authored-by: truewhile --- .github/workflows/Auto-docker-publish.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/Auto-docker-publish.yml b/.github/workflows/Auto-docker-publish.yml index 266a925..5506b2a 100644 --- a/.github/workflows/Auto-docker-publish.yml +++ b/.github/workflows/Auto-docker-publish.yml @@ -4,9 +4,7 @@ name: AuTo Docker Image on: push: branches: [main] - pull_request: - branches: [main] - + # 保留手动触发作为备选 workflow_dispatch: inputs: