v2 rehearsal: CI checks out the pushed ref instead of the default branch

This commit is contained in:
host committed 2026-11-05 02:45:36 +00:00
1 parent adc2a02f6c
commit 698398dafb
1 file changed
+3 -1
+3 -1
View File
@@ -10,7 +10,9 @@ jobs:
run: |
rm -rf src
git clone https://gitea.tose.top/admin/codex-app-server.git src
cd src && git rev-parse HEAD
cd src && git fetch origin "${{ gitea.ref }}" && git checkout FETCH_HEAD
echo "pushed ref: ${{ gitea.ref }}"
git rev-parse HEAD && git log --oneline -1
- name: host tests
run: cd src && python3 -m unittest discover -s tests -v
- name: cloud tests