Skip to content

Commit

Permalink
Manually clone and pull server files
Browse files Browse the repository at this point in the history
  • Loading branch information
refringe committed Jan 3, 2025
1 parent e06e727 commit 6ac30dc
Showing 1 changed file with 23 additions and 10 deletions.
33 changes: 23 additions & 10 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6ac30dc

Please sign in to comment.