Delete cache on build failure - #1361
Conversation
|
because i'm extra |
|
i lowkey don't like the impl of that cache action so i may make my own |
|
k this will have actual debug now when clearing cache and is readable & easier to modify |
granny
left a comment
There was a problem hiding this comment.
Proposal: Instead of clearing the actions cache, what if we just copy/pasted the "Apply Patches" & "Build Patches" steps but with the failure condition on both, as well as a step before that runs something like ./gradlew clean cleanCache.
So essentially:
- Apply Patches
- Build Patches
- If failed, run
./gradlew clean cleanCache - If failed, run "Apply Patches"
- If failed, run "Build Patches"
|
i mean clean (should?) depend on cleanCache, i'm not against fully clearing the actions cache either way as well
|
|
forgot abt this my fault - fixed it though. no longer deletes actions cache |

cc granny
This deletes cache on build fail, still requires a rerun though
If you wanted to combine the rerun, just needs a check (label?) to ensure it only runs once
POST /repos/:owner/:repo/actions/runs/:run_id/rerunhttps://docs.github.com/en/rest/actions/cache?apiVersion=2022-11-28 - cache API