Skip to content

Commit a3addfc

Browse files
authored
Cleanup cache entries after PR is closed (#254)
1 parent 685bb4d commit a3addfc

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

.github/workflows/cache.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Delete Unused Caches
2+
3+
on:
4+
pull_request:
5+
types: [closed]
6+
workflow_dispatch:
7+
inputs:
8+
pr-number:
9+
description: "Closed PR number"
10+
type: string
11+
required: true
12+
13+
jobs:
14+
delete:
15+
runs-on: ubuntu-latest
16+
permissions:
17+
actions: write
18+
steps:
19+
- uses: snnaplab/[email protected]
20+
with:
21+
ref: refs/pull/${{ github.event.inputs.pr-number || github.event.number }}/merge

0 commit comments

Comments
 (0)