forked from ton-connect/wallets-list
-
Notifications
You must be signed in to change notification settings - Fork 4
39 lines (33 loc) · 924 Bytes
/
sync-upstream.yaml
File metadata and controls
39 lines (33 loc) · 924 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Sync Upstream
on:
schedule:
- cron: '32 4 * * *'
workflow_dispatch:
push:
branches:
- main
jobs:
sync:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
persist-credentials: false
- name: Set up Git
run: |
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
- name: Add upstream
run: |
git remote add upstream https://github.com/ton-blockchain/wallets-list.git
git fetch upstream
- name: Merge upstream
run: |
git checkout main
git merge --no-edit --allow-unrelated-histories upstream/main
- name: Push changes
run: |
git push origin main --force
env:
GITHUB_TOKEN: ${{ secrets.MY_TOKEN }}