Skip to content

Commit 482c5ba

Browse files
authored
Update Gitea sync workflow to use 'main' branch
1 parent 56324ec commit 482c5ba

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/sync-from-gitea.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Sync from Gitea (master→main, keep workflow)
1+
name: Sync from Gitea (main→main, keep workflow)
22

33
on:
44
schedule:
@@ -31,7 +31,7 @@ jobs:
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

0 commit comments

Comments
 (0)