ci: 调整过时问题和 PR 的自动管理流程并添加删除 GHCR 未标记镜像的工作流

This commit is contained in:
2025-06-24 19:35:04 +08:00
parent f3b674c637
commit a916180284
2 changed files with 20 additions and 1 deletions

View File

@@ -1,7 +1,7 @@
name: "自动管理过时的问题和PR"
on:
schedule:
- cron: "0 0 * * 5"
- cron: "0 0 * * 6"
permissions:
issues: write

View File

@@ -0,0 +1,19 @@
name: 删除 GHCR Untagged 镜像
on:
release:
types: [ published ]
workflow_dispatch:
jobs:
delete-untagged:
runs-on: ubuntu-latest
steps:
- name: Delete all containers from package without tags
uses: Chizkiyahu/delete-untagged-ghcr-action@v6
with:
token: ${{ secrets.PAT_TOKEN }}
repository_owner: ${{ github.repository_owner }}
repository: ${{ github.repository }}
package_name: "xhs-downloader"
untagged_only: true
owner_type: user