mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-23 19:02:29 +03:00
Update actions/cache action to v4
This commit is contained in:
parent
e346423db2
commit
4ab31122a4
4
.github/actions/restore-cache/action.yml
vendored
4
.github/actions/restore-cache/action.yml
vendored
@ -6,13 +6,13 @@ runs:
|
||||
steps:
|
||||
- name: Check dependency cache
|
||||
id: dep-cache
|
||||
uses: actions/cache/restore@v3
|
||||
uses: actions/cache/restore@v4
|
||||
with:
|
||||
path: ${{ env.CACHED_DEPENDENCY_PATHS }}
|
||||
key: ${{ env.DEPENDENCY_CACHE_KEY }}
|
||||
|
||||
- name: Check build cache
|
||||
uses: actions/cache/restore@v3
|
||||
uses: actions/cache/restore@v4
|
||||
id: build-cache
|
||||
with:
|
||||
path: ${{ env.CACHED_BUILD_PATHS }}
|
||||
|
16
.github/workflows/ci.yml
vendored
16
.github/workflows/ci.yml
vendored
@ -148,7 +148,7 @@ jobs:
|
||||
echo "$EOF" >> "$GITHUB_ENV"
|
||||
|
||||
- name: Nx cache
|
||||
uses: actions/cache@v3
|
||||
uses: actions/cache@v4
|
||||
id: cache_nx
|
||||
with:
|
||||
path: .nxcache
|
||||
@ -156,7 +156,7 @@ jobs:
|
||||
restore-keys: ${{needs.job_get_metadata.outputs.is_main == 'false' && env.NX_CACHE_RESTORE_KEYS || 'nx-never-restore'}}
|
||||
|
||||
- name: Check dependency cache
|
||||
uses: actions/cache@v3
|
||||
uses: actions/cache@v4
|
||||
id: cache_dependencies
|
||||
with:
|
||||
path: ${{ env.CACHED_DEPENDENCY_PATHS }}
|
||||
@ -164,7 +164,7 @@ jobs:
|
||||
restore-keys: ${{needs.job_get_metadata.outputs.is_main == 'false' && env.DEPENDENCY_CACHE_RESTORE_KEYS || 'dep-never-restore'}}
|
||||
|
||||
- name: Check build cache
|
||||
uses: actions/cache@v3
|
||||
uses: actions/cache@v4
|
||||
id: cache_built_packages
|
||||
with:
|
||||
path: ${{ env.CACHED_BUILD_PATHS }}
|
||||
@ -207,7 +207,7 @@ jobs:
|
||||
env:
|
||||
DEPENDENCY_CACHE_KEY: ${{ needs.job_install_deps.outputs.dependency_cache_key }}
|
||||
|
||||
- uses: actions/cache@v3
|
||||
- uses: actions/cache@v4
|
||||
with:
|
||||
path: ghost/**/.eslintcache
|
||||
key: eslint-cache
|
||||
@ -325,7 +325,7 @@ jobs:
|
||||
- name: Get Playwright version
|
||||
id: playwright-version
|
||||
run: echo "version=$(node -p "require('@playwright/test/package.json').version")" >> $GITHUB_OUTPUT
|
||||
- uses: actions/cache@v3
|
||||
- uses: actions/cache@v4
|
||||
name: Check if Playwright browser is cached
|
||||
id: playwright-cache
|
||||
with:
|
||||
@ -658,7 +658,7 @@ jobs:
|
||||
- name: Get Playwright version
|
||||
id: playwright-version
|
||||
run: echo "version=$(node -p "require('@playwright/test/package.json').version")" >> $GITHUB_OUTPUT
|
||||
- uses: actions/cache@v3
|
||||
- uses: actions/cache@v4
|
||||
name: Check if Playwright browser is cached
|
||||
id: playwright-cache
|
||||
with:
|
||||
@ -711,7 +711,7 @@ jobs:
|
||||
- name: Get Playwright version
|
||||
id: playwright-version
|
||||
run: echo "version=$(node -p "require('@playwright/test/package.json').version")" >> $GITHUB_OUTPUT
|
||||
- uses: actions/cache@v3
|
||||
- uses: actions/cache@v4
|
||||
name: Check if Playwright browser is cached
|
||||
id: playwright-cache
|
||||
with:
|
||||
@ -764,7 +764,7 @@ jobs:
|
||||
- name: Get Playwright version
|
||||
id: playwright-version
|
||||
run: echo "version=$(node -p "require('@playwright/test/package.json').version")" >> $GITHUB_OUTPUT
|
||||
- uses: actions/cache@v3
|
||||
- uses: actions/cache@v4
|
||||
name: Check if Playwright browser is cached
|
||||
id: playwright-cache
|
||||
with:
|
||||
|
Loading…
Reference in New Issue
Block a user