Skip to content

Commit

Permalink
Added ability to merge branches manually via an action.
Browse files Browse the repository at this point in the history
  • Loading branch information
CraigHawker committed Nov 10, 2023
1 parent 3339db5 commit 0f35ea6
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 2 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/manual-merge-branches.yml
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 }}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Manual
name: Manual release

on:
workflow_dispatch:
Expand Down
3 changes: 2 additions & 1 deletion MFiles.VAF.Extensions.sln
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Actions", "Actions", "{4424
ProjectSection(SolutionItems) = preProject
.github\workflows\build-and-publish.yml = .github\workflows\build-and-publish.yml
.github\workflows\build.yml = .github\workflows\build.yml
.github\workflows\manual.yml = .github\workflows\manual.yml
.github\workflows\manual-release.yml = .github\workflows\manual-release.yml
.github\workflows\manual-merge-branches.yml = .github\workflows\manual-merge-branches.yml
EndProjectSection
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{DB025D1F-EAB3-42A6-B49C-1C9917C11ED0}"
Expand Down

0 comments on commit 0f35ea6

Please sign in to comment.