From 698398dafbfe28bf6d9e83238327e881668f2339 Mon Sep 17 00:00:00 2001 From: host Date: Thu, 5 Nov 2026 02:45:36 +0000 Subject: [PATCH] v2 rehearsal: CI checks out the pushed ref instead of the default branch --- .gitea/workflows/ci.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index e3bb282..1aab92a 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -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