-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add GitHub action for synchronizing commits from master to main branch (
#110874) Part of #97827 Signed-off-by: Tyler Smalley <[email protected]>
- Loading branch information
Tyler Smalley
committed
Sep 1, 2021
1 parent
8c56762
commit c13957e
Showing
1 changed file
with
26 additions
and
0 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,26 @@ | ||
# Synchronize all pushes to 'master' branch with 'main' branch to facilitate migration | ||
name: "Sync main branch" | ||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
sync_latest_from_upstream: | ||
runs-on: ubuntu-latest | ||
name: Sync latest commits from master branch | ||
|
||
steps: | ||
- name: Checkout target repo | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: main | ||
|
||
- name: Sync upstream changes | ||
id: sync | ||
uses: aormsby/[email protected] | ||
with: | ||
target_sync_branch: main | ||
target_repo_token: ${{ secrets.KIBANAMACHINE_TOKEN }} | ||
upstream_sync_branch: master | ||
upstream_sync_repo: elastic/kibana |