Skip to content

Commit 9d037c1

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

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/clean-cache.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
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+
schedule:
12+
- cron: "30 10 * * 3" # At 10:30 on Wednesday.
13+
14+
concurrency:
15+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
16+
cancel-in-progress: false
17+
18+
jobs:
19+
cleanup:
20+
if: github.repository == 'pypa/manylinux'
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+
package: manylinux-cache
29+
delete-untagged: true
30+
dry-run: (github.event_name == 'workflow_dispatch') && fromJSON(github.event.inputs.dry-run)

0 commit comments

Comments
 (0)