Workflow: Running into walls. Work from a subdirectory.
This commit is contained in:
parent
bf7f5c943c
commit
900e0e6a15
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user