v2 rehearsal: CI checks out the pushed ref instead of the default branch
This commit is contained in:
1 parent
adc2a02f6c
commit
698398dafb
1 file changed
+3
-1
@@ -10,7 +10,9 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
rm -rf src
|
rm -rf src
|
||||||
git clone https://gitea.tose.top/admin/codex-app-server.git 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
|
- name: host tests
|
||||||
run: cd src && python3 -m unittest discover -s tests -v
|
run: cd src && python3 -m unittest discover -s tests -v
|
||||||
- name: cloud tests
|
- name: cloud tests
|
||||||
|
|||||||
Reference in new issue
Block a user