Skip to content

Commit 783ddb1

Browse files
authored
Create sync-upstream.yaml
1 parent fd54492 commit 783ddb1

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Sync Upstream
2+
3+
on:
4+
schedule:
5+
- cron: '32 4 * * *'
6+
workflow_dispatch:
7+
push:
8+
branches:
9+
- main
10+
11+
jobs:
12+
sync:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v3
17+
with:
18+
persist-credentials: false
19+
20+
- name: Set up Git
21+
run: |
22+
git config user.name "github-actions[bot]"
23+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
24+
25+
- name: Add upstream
26+
run: |
27+
git remote add upstream https://github.com/ton-blockchain/wallets-list.git
28+
git fetch upstream
29+
30+
- name: Rebase onto upstream
31+
run: |
32+
git checkout main
33+
git rebase upstream/main
34+
35+
- name: Push changes
36+
run: |
37+
git push origin main --force
38+
env:
39+
GITHUB_TOKEN: ${{ secrets.MY_TOKEN }}

0 commit comments

Comments
 (0)