mirror of
https://github.com/SukkaW/Surge.git
synced 2025-12-12 09:10:35 +08:00
CI: use date as cache key
This commit is contained in:
parent
e4e51b69a1
commit
702b9d9596
5
.github/workflows/main.yml
vendored
5
.github/workflows/main.yml
vendored
@ -18,12 +18,15 @@ jobs:
|
|||||||
- uses: oven-sh/setup-bun@v1
|
- uses: oven-sh/setup-bun@v1
|
||||||
with:
|
with:
|
||||||
bun-version: canary
|
bun-version: canary
|
||||||
|
- name: Get current date
|
||||||
|
id: date
|
||||||
|
run: echo "date=$(date +'%Y-%m-%d %H:%M:%S')" >> $GITHUB_OUTPUT
|
||||||
- name: Cache cache.db
|
- name: Cache cache.db
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: |
|
path: |
|
||||||
.cache
|
.cache
|
||||||
key: ${{ runner.os }}-v1-${{ github.sha }}
|
key: ${{ runner.os }}-v1-${{ steps.date.outputs.date }}
|
||||||
# If source files changed but packages didn't, rebuild from a prior cache.
|
# If source files changed but packages didn't, rebuild from a prior cache.
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-v1
|
${{ runner.os }}-v1
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user