]> git.seodisparate.com - UDPConnection/commitdiff
Github action: ensure current ref is checked out
authorStephen Seo <seo.disparate@gmail.com>
Fri, 12 Jan 2024 05:31:36 +0000 (14:31 +0900)
committerStephen Seo <seo.disparate@gmail.com>
Fri, 12 Jan 2024 05:31:36 +0000 (14:31 +0900)
.github/workflows/unittests.yml

index 37269bf645b93b3760317d2b33ec5a38e08eb269..6e60a4ca197878617209786c8c30451e248cf67e 100644 (file)
@@ -11,7 +11,7 @@ jobs:
       - name: Install dependencies
         run: sudo /usr/bin/env DEBIAN_FRONTEND=noninteractive apt-get install libgtest-dev cmake git libsodium-dev
       - name: Get sources
-        run: git clone --depth=1 --no-single-branch https://github.com/Stephen-Seo/UDPConnection.git UDPC
+        run: git clone --depth=1 --no-single-branch https://github.com/Stephen-Seo/UDPConnection.git UDPC && cd UDPC && git checkout $GITHUB_REF_NAME
       - name: Build sources
         run: cd UDPC && cmake -S . -B buildDebug -DCMAKE_BUILD_TYPE=Debug && make -C buildDebug
       - name: Run tests