mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-10-02 13:29:10 +00:00
ci: make cache paths relative to workspace
workspace path can be different when running locally, thus preventing successful caching
This commit is contained in:
parent
8ede1f6e9b
commit
15a933fb4c
2 changed files with 3 additions and 3 deletions
|
@ -6,7 +6,7 @@ runs:
|
|||
- uses: actions/cache@v4
|
||||
id: cache-backend
|
||||
with:
|
||||
path: '/workspace/forgejo/forgejo/gitea'
|
||||
path: ${{github.workspace}}/gitea
|
||||
key: backend-build-${{ github.sha }}
|
||||
- if: steps.cache-backend.outputs.cache-hit != 'true'
|
||||
run: |
|
||||
|
|
|
@ -39,7 +39,7 @@ jobs:
|
|||
- name: "Cache frontend build for playwright testing"
|
||||
uses: actions/cache/save@v4
|
||||
with:
|
||||
path: '/workspace/forgejo/forgejo/public/assets'
|
||||
path: ${{github.workspace}}/public/assets
|
||||
key: frontend-build-${{ github.sha }}
|
||||
test-unit:
|
||||
if: ${{ !startsWith(vars.ROLE, 'forgejo-') }}
|
||||
|
@ -95,7 +95,7 @@ jobs:
|
|||
uses: actions/cache/restore@v4
|
||||
id: cache-frontend
|
||||
with:
|
||||
path: '/workspace/forgejo/forgejo/public/assets'
|
||||
path: ${{github.workspace}}/public/assets
|
||||
key: frontend-build-${{ github.sha }}
|
||||
- name: "Build frontend (if not cached)"
|
||||
if: steps.cache-frontend.outputs.cache-hit != 'true'
|
||||
|
|
Loading…
Reference in a new issue