Skip to content

Commit f2f8caa

Browse files
committed
Add GitHub action for syncing main branch
1 parent 5e84afe commit f2f8caa

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Synchronize all pushes to 'master' branch with 'main' branch to facilitate migration
2+
name: "Sync main branch"
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
sync_latest_from_upstream:
10+
runs-on: ubuntu-latest
11+
name: Sync latest commits from master branch
12+
13+
steps:
14+
- name: Checkout target repo
15+
uses: actions/checkout@v2
16+
with:
17+
ref: main
18+
19+
- name: Sync upstream changes
20+
id: sync
21+
uses: aormsby/[email protected]
22+
with:
23+
target_sync_branch: main
24+
target_repo_token: ${{ secrets.GITHUB_TOKEN }}
25+
upstream_sync_branch: master
26+
upstream_sync_repo: elastic/elasticsearch-hadoop

0 commit comments

Comments
 (0)