-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update merge branch action to be call by repository dispatch
- Loading branch information
1 parent
6fec77e
commit bcecb69
Showing
1 changed file
with
6 additions
and
12 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 |
---|---|---|
@@ -1,22 +1,16 @@ | ||
name: Merge branch | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
source_branch: | ||
description: "Merge branch from" | ||
default: "master" | ||
target_branch: | ||
description: "Merge branch to" | ||
default: "master" | ||
repository_dispatch: | ||
types: curl_request_merge | ||
jobs: | ||
sync-branch: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Merge branch ${{ github.event.inputs.source_branch }} -> ${{ github.event.inputs.target_branch }} | ||
- name: Merge branch ${{ github.event.client_payload.source_branch }} -> ${{ github.event.client_payload.target_branch }} | ||
uses: everlytic/[email protected] | ||
with: | ||
source_ref: ${{ github.event.inputs.source_branch }} | ||
target_branch: ${{ github.event.inputs.target_branch }} | ||
source_ref: ${{ github.event.client_payload.source_branch }} | ||
target_branch: ${{ github.event.client_payload.target_branch }} | ||
github_token: ${{ github.token }} | ||
commit_message_template: '[Automated] Merged {source_ref} into target {target_branch}' | ||
commit_message_template: '[Automated] Merged {source_ref} into target {target_branch}' |