File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments