File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88
99permissions :
1010 contents : write
11- actions : write
1211
1312jobs :
1413 sync :
2423 git config user.email "github-actions[bot]@users.noreply.github.com"
2524 git config user.name "github-actions[bot]"
2625
27- git remote add upstream https://git.code.sf.net/p/maxima/code
26+ git remote add upstream https://git.code.sf.net/p/maxima/website
2827 git fetch upstream
2928
30- # Save the workflow file before syncing
31- cp .github/workflows/sync.yml /tmp/sync.yml
32-
33- # Sync all branches
29+ # Sync all branches and tags
3430 git push origin refs/remotes/upstream/*:refs/heads/* --force-with-lease
3531 git push origin --tags --force
36-
37- # Restore the workflow file to master
38- git checkout master
39- git reset --hard upstream/master
40- mkdir -p .github/workflows
41- cp /tmp/sync.yml .github/workflows/sync.yml
42- git add .github/workflows/sync.yml
43- git commit -m "Restore sync workflow" --allow-empty
44- git push origin master
You can’t perform that action at this time.
0 commit comments