From 391834081e70ff29585ee9858e3d06f5bd95136c Mon Sep 17 00:00:00 2001 From: Refringe Date: Thu, 25 Apr 2024 00:06:29 -0400 Subject: [PATCH] Workflow: Reverts to manual checkout, swaps to using GITHUB_REF --- .gitea/workflows/run-test.yaml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/run-test.yaml b/.gitea/workflows/run-test.yaml index 379f6a08..01362d09 100644 --- a/.gitea/workflows/run-test.yaml +++ b/.gitea/workflows/run-test.yaml @@ -9,22 +9,24 @@ on: jobs: vitest: runs-on: ubuntu-latest - if: > # Conditional to limit runs: it checks if it's NOT a push to a branch with an open PR + if: > # Conditional to limit runs: checks if it's NOT a push to a branch with an open PR github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository container: image: refringe/spt-build-node:1.0.7 steps: + - name: Clone + run: | + rm -rf /workspace/SPT-AKI/Server + git clone https://dev.sp-tarkov.com/${{ GITHUB_REPOSITORY }}.git --branch master /workspace/SPT-AKI/Server - - name: Checkout Repository - uses: actions/checkout@v3 - with: - lfs: false - github-server-url: 'https://dev.sp-tarkov.com' + cd /workspace/SPT-AKI/Server + git checkout ${{ GITHUB_REF }} + shell: bash - name: Pull LFS Files run: | - ls -lah + cd /workspace/SPT-AKI/Server git lfs pull git lfs ls-files shell: bash