From 3e2e2e47dfadbe43302cc6b03be8788b3b3455f4 Mon Sep 17 00:00:00 2001 From: Refringe Date: Thu, 25 Apr 2024 00:27:18 -0400 Subject: [PATCH] Workflow: Use the workspace environment variable --- .gitea/workflows/run-test.yaml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/run-test.yaml b/.gitea/workflows/run-test.yaml index 77bde855..b6b811ee 100644 --- a/.gitea/workflows/run-test.yaml +++ b/.gitea/workflows/run-test.yaml @@ -19,19 +19,20 @@ jobs: run: | echo "github.repository = ${{ github.repository }}" echo "github.ref = ${{ github.ref }}" + echo "github.ref = ${{ github.ref }}" + echo "github.workspace = ${{ github.workspace }}" - rm -rf /workspace/SPT-AKI/Server - git clone --progress --verbose https://dev.sp-tarkov.com/${{ github.repository }}.git --branch master /workspace/SPT-AKI/Server + rm -rf ${{ github.workspace }} + git clone --progress --verbose https://dev.sp-tarkov.com/${{ github.repository }}.git --branch master ${{ github.workspace }} - cd /workspace/SPT-AKI/Server && ls -lah + cd ${{ github.workspace }} && ls -lah git checkout ${{ github.ref }} shell: bash - name: Pull LFS Files run: | - cd /workspace/SPT-AKI/Server && ls -lah - git lfs pull - git lfs ls-files + cd ${{ github.workspace }} && ls -lah + git lfs pull && git lfs ls-files shell: bash - name: Cache NPM Dependencies