Skip to content

Commit

Permalink
ci: cleanup cache (#166)
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode authored Aug 22, 2023
1 parent dced33a commit 1775ac8
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/auto-cleanup-caches.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
name: 🤖 Auto cleanup caches by a branch
name: 🤖 Auto cleanup caches
on:
push:
branches: [main, 'v[0-9]+.x']
pull_request:
types:
- closed
Expand All @@ -12,5 +14,10 @@ jobs:
steps:
- uses: actions/checkout@v3.5.3
- uses: taiga-family/ci/actions/cleanup-cache@1.9.2
if: github.event_name == 'push'
with:
branch-name: ${{ github.head_ref || github.ref_name }}
- uses: taiga-family/ci/actions/cleanup-cache@1.9.2
if: github.event_name == 'pull_request'
with:
branch-name: refs/pull/${{ github.event.pull_request.number }}/merge

0 comments on commit 1775ac8

Please sign in to comment.