mirror of
https://github.com/JoeanAmier/XHS-Downloader.git
synced 2026-03-22 06:57:16 +08:00
ci: 调整过时问题和 PR 的自动管理流程并添加删除 GHCR 未标记镜像的工作流
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
name: "自动管理过时的问题和PR"
|
||||
on:
|
||||
schedule:
|
||||
- cron: "0 0 * * 5"
|
||||
- cron: "0 0 * * 6"
|
||||
|
||||
permissions:
|
||||
issues: write
|
||||
|
||||
19
.github/workflows/Delete_untagged_images.yml
vendored
Normal file
19
.github/workflows/Delete_untagged_images.yml
vendored
Normal 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
|
||||
Reference in New Issue
Block a user