diff --git a/.github/workflows/Close_Stale_Issues_and_PRs.yaml b/.github/workflows/Close_Stale_Issues_and_PRs.yaml index abf68ae..9d8b244 100644 --- a/.github/workflows/Close_Stale_Issues_and_PRs.yaml +++ b/.github/workflows/Close_Stale_Issues_and_PRs.yaml @@ -1,7 +1,7 @@ name: "自动管理过时的问题和PR" on: schedule: - - cron: "0 0 * * 5" + - cron: "0 0 * * 6" permissions: issues: write diff --git a/.github/workflows/Delete_untagged_images.yml b/.github/workflows/Delete_untagged_images.yml new file mode 100644 index 0000000..80bf159 --- /dev/null +++ b/.github/workflows/Delete_untagged_images.yml @@ -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