Skip to content

Commit

Permalink
ci: fix cache cleanup
Browse files Browse the repository at this point in the history
- as it was now, cache-cleanup-pull-request would delete all caches,
  which is not what we want

Signed-off-by: AtomicFS <vojtech.vesely@9elements.com>
  • Loading branch information
AtomicFS committed Nov 6, 2024
1 parent 9dad109 commit 4d0c1fb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/cache-cleanup-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ jobs:
cache-cleanup-branch:
runs-on: ubuntu-latest
steps:
- uses: opengrabeso/clean-cache@v1
- name: Clean cache for each branch
uses: opengrabeso/clean-cache@v1
with:
post: true
keep: 1
2 changes: 2 additions & 0 deletions .github/workflows/cache-cleanup-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,5 @@ jobs:
steps:
- name: Clean cache for the closed/merged PR
uses: opengrabeso/clean-cache@v1
with:
keep: 1

0 comments on commit 4d0c1fb

Please sign in to comment.