AMReX-Fluids / incflo

Incompressible Navier-Stokes solver in complex geometries
https://amrex-fluids.github.io/incflo
BSD 3-Clause "New" or "Revised" License
46 stars 28 forks source link

Simplify cache cleanup actions #124

Closed WeiqunZhang closed 2 months ago

WeiqunZhang commented 2 months ago

For the CleanUpCache workflow run triggered by PR workflows, there is a simple way of getting the PR number. The full event webhook payload is available as a json file and it contains the number of the triggering PR. So we don't need to upload the PR number as an artifact.

For the post-PR cleanup, we could also clean up the cache directly without uploading the PR number and triggering a workflow run for cleaning.