Skip to content

Commit 7ebbd98

Browse files
SpotExchangegithub-actions[bot]
authored andcommitted
Update auto_sync.yml
1 parent 76831f5 commit 7ebbd98

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

.github/workflows/auto_sync.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Sync Fork with Upstream
2+
3+
on:
4+
schedule:
5+
- cron: '0 */12 * * *' # Rulează la fiecare 12 ore
6+
workflow_dispatch: # Permite declanșarea manuală
7+
8+
jobs:
9+
sync:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout the forked repo
14+
uses: actions/checkout@v4
15+
16+
- name: Set up Git
17+
run: |
18+
git config user.name "github-actions[bot]"
19+
git config user.email "github-actions[bot]@users.noreply.github.com"
20+
21+
- name: Add upstream remote
22+
# Aici este actualizarea: setează upstream-ul corect
23+
run: git remote add upstream https://github.com/multiversx/mx-assets.git
24+
25+
- name: Fetch upstream
26+
run: git fetch upstream
27+
28+
- name: Rebase onto upstream and Push
29+
run: |
30+
git checkout master
31+
git rebase upstream/master
32+
git push origin master --force

0 commit comments

Comments
 (0)