Skip to content

feat(ci): add upstream version check and conditional Docker publish#19

Merged
hrygo merged 1 commit intomainfrom
feat/ci/version-check-workflow
Mar 14, 2026
Merged

feat(ci): add upstream version check and conditional Docker publish#19
hrygo merged 1 commit intomainfrom
feat/ci/version-check-workflow

Conversation

@hrygo
Copy link
Copy Markdown
Owner

@hrygo hrygo commented Mar 14, 2026

Summary

  • 添加 upstream 版本检查 job,自动检测 OpenClaw 上游新版本
  • 支持 workflow_dispatch 手动触发强制发布
  • 构建任务改为仅在需要发布时运行(tag push、repository_dispatch、scheduled 检测到新版本)
  • 发布成功后自动更新版本 secret

Related Issue

Ref #20

Test plan

  • 验证 PR 触发构建但不发布镜像
  • 验证手动触发 force_publish 时会发布镜像
  • 验证 tag push 时会发布镜像

🤖 Generated with Claude Code

- Add check-upstream job to detect new upstream versions
- Add workflow_dispatch input for manual force publish
- Update build jobs to only run when should_publish is true
- Publish images on tag push, repository_dispatch, or scheduled check
- Store latest version in secret after successful publish

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown

⚠️ Missing Issue Reference

This PR does not seem to be linked to an existing issue.

Please add one of the following issue references in your PR description or title:

  • Closes #123 - when the PR fully resolves the issue
  • Fixes #123 - when the PR fixes the bug
  • Resolves #123 - when the PR resolves the issue
  • Addresses #123 - for related discussions

Example:

## Summary
Add new feature for...

## Related Issue
Closes #123

@hrygo
Copy link
Copy Markdown
Owner Author

hrygo commented Mar 14, 2026

已关联 Issue #20,请重新检查 CI

@hrygo hrygo merged commit cf99c1b into main Mar 14, 2026
8 of 9 checks passed
@hrygo hrygo deleted the feat/ci/version-check-workflow branch March 14, 2026 01:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant