Add .gitea/workflows/*.yaml

This commit is contained in:
2025-10-19 15:42:40 -07:00
parent 361da95b47
commit 3bd8b97ba9

View File

@@ -26,10 +26,14 @@ jobs:
- name: Ensure local 'main' tracks origin/main (for Gitea runners)
run: |
git fetch origin main --tags
# Force-create/update local main to point at remote
git branch -f main origin/main
git checkout main
# make sure we have everything
git fetch origin main --tags --prune
# be on main (no-op if already there)
git checkout main || git switch main
# hard update the working tree to match origin/main
git reset --hard origin/main
# ensure upstream is set (harmless if already set)
git branch --set-upstream-to=origin/main main
git config user.name "hangpersonal"
git config user.email "hangcui1201@gmail.com"