From: Tobias Brunner Date: Fri, 8 May 2026 12:45:25 +0000 (+0200) Subject: github: Add workflow to remove cache entries once a branch is deleted X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=9c140dd45c41ff2ecc1d4b952b8bd4902ffbbb9d;p=thirdparty%2Fstrongswan.git github: Add workflow to remove cache entries once a branch is deleted --- diff --git a/.github/workflows/cache-cleanup.yml b/.github/workflows/cache-cleanup.yml new file mode 100644 index 0000000000..4e856bf404 --- /dev/null +++ b/.github/workflows/cache-cleanup.yml @@ -0,0 +1,16 @@ +name: Cache cleanup + +on: delete + +permissions: + actions: write + +jobs: + cleanup: + runs-on: ubuntu-slim + steps: + - env: + GH_TOKEN: ${{ github.token }} + # github.ref for deletes is the default branch, so we get the ref from + # the event + run: gh cache delete --repo ${{ github.repository }} -r ${{ github.event.ref }} --all --succeed-on-no-caches