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 from Gitea (master →main, keep workflow)
1+ name : Sync from Gitea (main →main, keep workflow)
22
33on :
44 schedule :
3131 git remote add gitea "$AUTH_URL"
3232 git fetch gitea --prune
3333
34- - name : Update main from gitea/master , keep workflow, and force-push
34+ - name : Update main from gitea/main , keep workflow, and force-push
3535 env :
3636 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
3737 GH_REPO : ${{ github.repository }}
@@ -51,11 +51,11 @@ jobs:
5151 cp "$WF_PATH" /tmp/gh-workflows/
5252 fi
5353
54- # Reset local 'main' to exactly match gitea/master
55- if git show-ref --verify --quiet refs/remotes/gitea/master ; then
56- git checkout -B main gitea/master
54+ # Reset local 'main' to exactly match gitea/main
55+ if git show-ref --verify --quiet refs/remotes/gitea/main ; then
56+ git checkout -B main gitea/main
5757 else
58- echo "No gitea/master found, nothing to sync."
58+ echo "No gitea/main found, nothing to sync."
5959 exit 0
6060 fi
6161
You can’t perform that action at this time.
0 commit comments