Workflow: Reverts to manual checkout, swaps to using GITHUB_REF
This commit is contained in:
parent
d47f7e3b13
commit
391834081e
@ -9,22 +9,24 @@ on:
|
|||||||
jobs:
|
jobs:
|
||||||
vitest:
|
vitest:
|
||||||
runs-on: ubuntu-latest
|
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_name == 'push' ||
|
||||||
github.event.pull_request.head.repo.full_name != github.repository
|
github.event.pull_request.head.repo.full_name != github.repository
|
||||||
container:
|
container:
|
||||||
image: refringe/spt-build-node:1.0.7
|
image: refringe/spt-build-node:1.0.7
|
||||||
steps:
|
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
|
cd /workspace/SPT-AKI/Server
|
||||||
uses: actions/checkout@v3
|
git checkout ${{ GITHUB_REF }}
|
||||||
with:
|
shell: bash
|
||||||
lfs: false
|
|
||||||
github-server-url: 'https://dev.sp-tarkov.com'
|
|
||||||
|
|
||||||
- name: Pull LFS Files
|
- name: Pull LFS Files
|
||||||
run: |
|
run: |
|
||||||
ls -lah
|
cd /workspace/SPT-AKI/Server
|
||||||
git lfs pull
|
git lfs pull
|
||||||
git lfs ls-files
|
git lfs ls-files
|
||||||
shell: bash
|
shell: bash
|
||||||
|
Loading…
Reference in New Issue
Block a user