mirror of
https://github.com/gradle/gradle-build-action.git
synced 2025-09-14 11:42:22 +08:00
Seed the cache key with workflow id in CI
This will eliminate cache entries from previous workflow runs, allowing us to test cache functionality in isolation. If the `CACHE_KEY_SEED` environment variable is not set, this will have no impact.
This commit is contained in:
3
.github/workflows/prod.yml
vendored
3
.github/workflows/prod.yml
vendored
@@ -6,6 +6,9 @@ on:
|
||||
push:
|
||||
workflow_dispatch:
|
||||
|
||||
env:
|
||||
CACHE_KEY_SEED: ${{github.workflow}}#${{github.run_number}}-
|
||||
|
||||
jobs:
|
||||
basic-build:
|
||||
strategy:
|
||||
|
Reference in New Issue
Block a user