Files
prune-go/action.yml
T
2026-11-05 03:22:15 +00:00

22 lines
901 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
name: prune-go
description: "整理 Go 套件庫(Docker action,bash+curl):正式版留最新 5 個(KEEP_RELEASES)、dev 版只留基底比最新正式版新的,剛部署的版本一定保留。善後用:失敗只印警告、以 0 結束。要在 checkout 之後使用"
inputs:
version:
description: "剛部署的版本(一定保留)"
required: true
token:
description: "權杖(需要 read:package 與 write:package;沒有刪除權限只會警告)"
required: true
gitea_url:
description: "Gitea 網址,預設是目前的 Gitea"
default: ${{ github.server_url }}
gitea_repo:
description: "Gitea 儲存庫 <擁有者>/<名稱>,預設是目前的儲存庫"
default: ${{ github.repository }}
keep_releases:
description: "正式版保留幾個(空=腳本預設 5)"
default: ""
runs:
using: docker
image: Dockerfile