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 <truewhile@users.noreply.github.com>
This commit is contained in:
Cursor Agent
2026-09-02 01:45:32 +00:00
parent ba621cfc4a
commit 3304f09b1d
@@ -4,8 +4,6 @@ name: AuTo Docker Image
on: on:
push: push:
branches: [main] branches: [main]
pull_request:
branches: [main]
# 保留手动触发作为备选 # 保留手动触发作为备选
workflow_dispatch: workflow_dispatch: