-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added ability to merge branches manually via an action.
- Loading branch information
1 parent
3339db5
commit 0f35ea6
Showing
3 changed files
with
30 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Merge branches (manual) | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
sourceBranch: | ||
description: 'Source branch' | ||
required: false | ||
default: 'master' | ||
targetBranch: | ||
description: 'Target branch' | ||
required: false | ||
default: 'release' | ||
|
||
jobs: | ||
sync-branch: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
|
||
- name: Merge master -> release | ||
uses: devmasx/merge-branch@master | ||
with: | ||
type: now | ||
from_branch: ${{ inputs.sourceBranch }} | ||
target_branch: ${{ targetBranch.sourceBranch }} | ||
github_token: ${{ secrets.GITHUB_TOKEN }} |
2 changes: 1 addition & 1 deletion
2
.github/workflows/manual.yml → .github/workflows/manual-release.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Manual | ||
name: Manual release | ||
|
||
on: | ||
workflow_dispatch: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters