mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 17:28:26 -04:00
Add GitHub action for synchronizing commits from master to main branch (#110874)
Part of #97827 Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
This commit is contained in:
parent
8c567624d3
commit
c13957e63e
1 changed files with 26 additions and 0 deletions
26
.github/workflows/sync-main-branch.yml
vendored
Normal file
26
.github/workflows/sync-main-branch.yml
vendored
Normal file
|
@ -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/Fork-Sync-With-Upstream-action@v3.0
|
||||
with:
|
||||
target_sync_branch: main
|
||||
target_repo_token: ${{ secrets.KIBANAMACHINE_TOKEN }}
|
||||
upstream_sync_branch: master
|
||||
upstream_sync_repo: elastic/kibana
|
Loading…
Add table
Add a link
Reference in a new issue