mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-25 03:06:31 -05:00
fix: prefer pull request head sha for e2e build cache key
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
828c5937a0
commit
cb74cb21ed
1 changed files with 3 additions and 2 deletions
5
.github/workflows/e2e.yml
vendored
5
.github/workflows/e2e.yml
vendored
|
@ -15,6 +15,7 @@ permissions:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
NODE_VERSION: 18
|
NODE_VERSION: 18
|
||||||
|
BUILD_CACHE_KEY: "${{ !!github.event.pull_request && github.event.pull_request.head.sha || github.sha }}"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-frontend:
|
build-frontend:
|
||||||
|
@ -29,7 +30,7 @@ jobs:
|
||||||
id: build-cache
|
id: build-cache
|
||||||
with:
|
with:
|
||||||
path: .next
|
path: .next
|
||||||
key: build-${{ github.sha }}
|
key: ${{ env.BUILD_CACHE_KEY }}
|
||||||
|
|
||||||
- name: Get yarn cache directory path
|
- name: Get yarn cache directory path
|
||||||
id: yarn-cache-dir-path
|
id: yarn-cache-dir-path
|
||||||
|
@ -88,7 +89,7 @@ jobs:
|
||||||
id: build-cache
|
id: build-cache
|
||||||
with:
|
with:
|
||||||
path: .next
|
path: .next
|
||||||
key: build-${{ github.sha }}
|
key: ${{ env.BUILD_CACHE_KEY }}
|
||||||
|
|
||||||
- name: Get yarn cache directory path
|
- name: Get yarn cache directory path
|
||||||
id: yarn-cache-dir-path
|
id: yarn-cache-dir-path
|
||||||
|
|
Loading…
Reference in a new issue