Skip to content

Commit 9df9b1d

Browse files
authored
chore: add workflow to delete untagged packages (#504)
1 parent 883daf8 commit 9df9b1d

File tree

2 files changed

+64
-0
lines changed

2 files changed

+64
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Delete Untagged Packages
2+
3+
on:
4+
schedule:
5+
- cron: "0 2 * * 0"
6+
workflow_dispatch: null
7+
8+
permissions:
9+
packages: write
10+
11+
jobs:
12+
delete-untagged-packages:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Delete untagged dev-cache packages
16+
uses: actions/[email protected]
17+
with:
18+
package-name: "ss-python/dev-cache"
19+
package-type: "container"
20+
delete-only-untagged-versions: "true"
21+
- name: Delete untagged development packages
22+
uses: actions/[email protected]
23+
with:
24+
package-name: "ss-python/dev"
25+
package-type: "container"
26+
delete-only-untagged-versions: "true"
27+
- name: Delete untagged production packages
28+
uses: actions/[email protected]
29+
with:
30+
package-name: "ss-python"
31+
package-type: "container"
32+
delete-only-untagged-versions: "true"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Delete Untagged Packages
2+
3+
on:
4+
schedule:
5+
- cron: "0 2 * * 0"
6+
workflow_dispatch: null
7+
8+
permissions:
9+
packages: write
10+
11+
jobs:
12+
delete-untagged-packages:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Delete untagged dev-cache packages
16+
uses: actions/[email protected]
17+
with:
18+
package-name: "{{ repo_name }}/dev-cache"
19+
package-type: "container"
20+
delete-only-untagged-versions: "true"
21+
- name: Delete untagged development packages
22+
uses: actions/[email protected]
23+
with:
24+
package-name: "{{ repo_name }}/dev"
25+
package-type: "container"
26+
delete-only-untagged-versions: "true"
27+
- name: Delete untagged production packages
28+
uses: actions/[email protected]
29+
with:
30+
package-name: "{{ repo_name }}"
31+
package-type: "container"
32+
delete-only-untagged-versions: "true"

0 commit comments

Comments
 (0)