Workflow: Running into walls. Work from a subdirectory.

This commit is contained in:
Refringe 2024-04-25 00:39:24 -04:00
parent bf7f5c943c
commit 900e0e6a15
No known key found for this signature in database
GPG Key ID: 7715B85B4A6306ED

View File

@ -17,17 +17,16 @@ jobs:
steps: steps:
- name: Clone - name: Clone
run: | run: |
cd /workspace rm -rf ${{ github.workspace }}/current
rm -rf ${{ github.workspace }} git clone --progress --verbose https://dev.sp-tarkov.com/${{ github.repository }}.git --branch master ${{ github.workspace }}/current
git clone --progress --verbose https://dev.sp-tarkov.com/${{ github.repository }}.git --branch master ${{ github.workspace }}
cd ${{ github.workspace }} && ls -lah cd ${{ github.workspace }}/current && ls -lah
git checkout ${{ github.ref }} git checkout ${{ github.ref }}
shell: bash shell: bash
- name: Pull LFS Files - name: Pull LFS Files
run: | run: |
cd ${{ github.workspace }} && ls -lah cd ${{ github.workspace }}/current && ls -lah
git lfs pull && git lfs ls-files git lfs pull && git lfs ls-files
shell: bash shell: bash
@ -35,13 +34,13 @@ jobs:
id: cache-npm-dependencies id: cache-npm-dependencies
uses: actions/cache@v4 uses: actions/cache@v4
with: with:
path: project/node_modules path: current/project/node_modules
key: npm-dependencies-${{ hashFiles('project/package.json') }} key: npm-dependencies-${{ hashFiles('current/project/package.json') }}
- name: Install NPM Dependencies - name: Install NPM Dependencies
if: steps.cache-npm-dependencies.outputs.cache-hit != 'true' if: steps.cache-npm-dependencies.outputs.cache-hit != 'true'
run: | run: |
rm -rf project/node_modules rm -rf current/project/node_modules
npm install npm install
shell: bash shell: bash