Skip to content

Commit

Permalink
chore: add workflow to delete untagged packages (#504)
Browse files Browse the repository at this point in the history
  • Loading branch information
huxuan authored Apr 27, 2024
1 parent 883daf8 commit 9df9b1d
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/delete-untagged-packages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Delete Untagged Packages

on:
schedule:
- cron: "0 2 * * 0"
workflow_dispatch: null

permissions:
packages: write

jobs:
delete-untagged-packages:
runs-on: ubuntu-latest
steps:
- name: Delete untagged dev-cache packages
uses: actions/delete-package-versions@v5.0.0
with:
package-name: "ss-python/dev-cache"
package-type: "container"
delete-only-untagged-versions: "true"
- name: Delete untagged development packages
uses: actions/delete-package-versions@v5.0.0
with:
package-name: "ss-python/dev"
package-type: "container"
delete-only-untagged-versions: "true"
- name: Delete untagged production packages
uses: actions/delete-package-versions@v5.0.0
with:
package-name: "ss-python"
package-type: "container"
delete-only-untagged-versions: "true"
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Delete Untagged Packages

on:
schedule:
- cron: "0 2 * * 0"
workflow_dispatch: null

permissions:
packages: write

jobs:
delete-untagged-packages:
runs-on: ubuntu-latest
steps:
- name: Delete untagged dev-cache packages
uses: actions/delete-package-versions@v5.0.0
with:
package-name: "{{ repo_name }}/dev-cache"
package-type: "container"
delete-only-untagged-versions: "true"
- name: Delete untagged development packages
uses: actions/delete-package-versions@v5.0.0
with:
package-name: "{{ repo_name }}/dev"
package-type: "container"
delete-only-untagged-versions: "true"
- name: Delete untagged production packages
uses: actions/delete-package-versions@v5.0.0
with:
package-name: "{{ repo_name }}"
package-type: "container"
delete-only-untagged-versions: "true"

0 comments on commit 9df9b1d

Please sign in to comment.