Skip to content

Commit a34ac3d

Browse files
committed
ci: add manylinux-cache clean-up
1 parent a080bd1 commit a34ac3d

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/clean-cache.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Clean image cache
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
dry-run:
7+
description: Dry Run
8+
type: boolean
9+
required: false
10+
default: false
11+
push:
12+
schedule:
13+
- cron: "30 10 * * 3" # At 10:30 on Wednesday.
14+
15+
concurrency:
16+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
17+
cancel-in-progress: false
18+
19+
jobs:
20+
deploy:
21+
name: Clean image cache
22+
runs-on: ubuntu-latest
23+
permissions:
24+
packages: write
25+
steps:
26+
- uses: dataaxiom/ghcr-cleanup-action@cd0cdb900b5dbf3a6f2cc869f0dbb0b8211f50c4 # v1.0.16
27+
with:
28+
delete-untagged: true
29+
dry-run: true # github.event_name == 'workflow_dispatch' && fromJSON(github.event.inputs.dry-run)

0 commit comments

Comments
 (0)