Skip to content

Commit e71e3b9

Browse files
committed
Simplify sync actions on the github-ci branch
sync.yml is now on the github-ci branch. We can simplify some things since we're assuming the upstream maxima repo will never have a github-ci branch.
1 parent 90c3225 commit e71e3b9

1 file changed

Lines changed: 2 additions & 15 deletions

File tree

.github/workflows/sync.yml

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ on:
88

99
permissions:
1010
contents: write
11-
actions: write
1211

1312
jobs:
1413
sync:
@@ -24,21 +23,9 @@ jobs:
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

0 commit comments

Comments
 (0)