We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f90d541 commit 94a000eCopy full SHA for 94a000e
.github/workflows/flush-cache.yml
@@ -0,0 +1,18 @@
1
+# Based on https://github.com/actions/cache/issues/2#issuecomment-1098723830
2
+# This seems to be the only way to flush GitHub Actions cache without changing
3
+# the cache key every time.
4
+on:
5
+ workflow_dispatch:
6
+ pull_request: # temporary, remove before merging if this works
7
+jobs:
8
+ flush-cache:
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - uses: actions/cache@v2
12
+ with:
13
+ path: /tmp/flush
14
+ key: ${{ github.run_id }}-${{ github.run_attempt }}
15
+ # 10 GB is the max cache size. Anything over that will be evicted.
16
+ # We go 50% over the limit for good measure.
17
+ # Data is zstd-compressed, so we can't fallocate it.
18
+ - run: dd if=/dev/urandom of=/tmp/flush bs=1M count=15000
0 commit comments