-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add workflow to delete untagged packages (#504)
- Loading branch information
Showing
2 changed files
with
64 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
32 changes: 32 additions & 0 deletions
32
...st_type == 'github.com' %].github[% endif %]/workflows/delete-untagged-packages.yml.jinja
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |