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) - name: Ensure local 'main' tracks origin/main (for Gitea runners)
run: | run: |
git fetch origin main --tags # make sure we have everything
# Force-create/update local main to point at remote git fetch origin main --tags --prune
git branch -f main origin/main # be on main (no-op if already there)
git checkout main 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.name "hangpersonal"
git config user.email "hangcui1201@gmail.com" git config user.email "hangcui1201@gmail.com"