Skip to content

Commit

Permalink
Add GitHub action for synchronizing commits from master to main branch (
Browse files Browse the repository at this point in the history
#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.
26 changes: 26 additions & 0 deletions .github/workflows/sync-main-branch.yml
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

0 comments on commit c13957e

Please sign in to comment.