Skip to content

Commit bf9c640

Browse files
Merge pull request #48 from tinybirdco/add-live-sync
add github action to sync live demo deploy branch with main
2 parents cd21b27 + 61c8429 commit bf9c640

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/sync-live.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Sync live demo branch with main
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
sync:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v4
14+
with:
15+
fetch-depth: 0
16+
17+
- name: Configure Git
18+
run: |
19+
git config user.name "github-actions[bot]"
20+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
21+
22+
- name: Sync main into live
23+
run: |
24+
git checkout live
25+
git merge origin/main --no-edit
26+
git push origin live

0 commit comments

Comments
 (0)