We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a080bd1 commit a34ac3dCopy full SHA for a34ac3d
.github/workflows/clean-cache.yml
@@ -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