Files
bot bae9657059
ci / test (push) Successful in 1m1s
初始版本:從 feather-vault 搬出
2026-11-05 02:54:23 +00:00

16 lines
664 B
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
name: sync-branch
description: "把來源分支的提交合併進目標分支並推送(Docker action,bash+git)。目標分支不存在、或已包含該提交就什麼都不做;有衝突就失敗(不強推、不自動解衝突)。要在 checkout(fetch-depth: 0,且 token 能推送目標分支)之後使用"
inputs:
source:
description: "來源分支名稱(例如 main)"
required: true
target:
description: "目標分支名稱(例如 dev)"
required: true
sha:
description: "要合併進去的來源提交,預設是目前的 github.sha"
default: ${{ github.sha }}
runs:
using: docker
image: Dockerfile