0
0
mirror of https://github.com/sp-tarkov/build.git synced 2025-02-12 16:50:45 -05:00

Manually clone and pull server files

This commit is contained in:
Refringe 2025-01-03 12:12:16 -05:00
parent e06e727056
commit 6ac30dcc1b
Signed by: Refringe
SSH Key Fingerprint: SHA256:t865XsQpfTeqPRBMN2G6+N8wlDjkgUCZF3WGW6O9N/k

View File

@ -181,17 +181,30 @@ jobs:
}
Write-Host "Cloning target: ${{ env.TARGET }}"
- uses: actions/checkout@v4
with:
ref: ${{ env.TARGET }}
fetch-tags: true
lfs: false
path: 'SPT/Build/server'
- name: Pull LFS
run: git lfs pull
- name: Clone Server
shell: pwsh
working-directory: ./SPT/Build/server
run: |
# If found, remove any existing folder from a previous run
$serverPath = "$env:GITHUB_WORKSPACE\SPT\Build\server"
if (Test-Path $serverPath) {
Remove-Item -Recurse -Force $serverPath
}
# Clone the server repo
git clone --depth=1 https://github.com/sp-tarkov/server.git $serverPath
# Move into the cloned repo
Set-Location $serverPath
# Fetch tags if needed
git fetch --tags
# Checkout the ref (branch or tag) from $env.TARGET
git checkout $env:TARGET
# Install LFS and pull files
git lfs install --local
git lfs pull
- name: Output Commit Hash
id: commit-hash