File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -31,10 +31,12 @@ jobs:
3131 pip install pyyaml requests
3232
3333 - name : Restore LeetCode API cache
34- uses : actions/cache@v4
34+ uses : actions/cache/restore @v4
3535 with :
3636 path : .leetcode_cache.json
37- key : leetcode-cache
37+ key : leetcode-cache-latest
38+ restore-keys : |
39+ leetcode-cache-
3840
3941 - name : Update READMEs
4042 run : python ./Scripts/update_readmes.py
Original file line number Diff line number Diff line change 6868 uses : actions/cache/restore@v4
6969 with :
7070 path : .leetcode_cache.json
71- key : leetcode-cache
71+ key : leetcode-cache-${{ github.run_id }}
72+ restore-keys : |
73+ leetcode-cache-
7274
7375 - name : Generate LeetCode README table
7476 run : |
7981 uses : actions/cache/save@v4
8082 with :
8183 path : .leetcode_cache.json
82- key : leetcode-cache
84+ key : leetcode-cache-${{ github.run_id }}
8385
8486 - name : Commit and push changes
8587 run : |
You can’t perform that action at this time.
0 commit comments