+15
@@ -0,0 +1,15 @@
|
||||
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
|
||||
Reference in New Issue
Block a user