將 action 由 bash(curl/jq) 改寫為 Node 主程式 app/index.js(沿用原清理邏輯: 正式版與 beta 版各自保留 KEEP_COUNT 筆、刪除多餘 release 與未綁定 release 的 tag), entrypoint.sh 改為輸出橫幅後 exec node 主程式,Dockerfile 改用 node alpine 六步結構, 並補上 app/package.json 與 action.yaml 輸入說明。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
17 lines
396 B
YAML
17 lines
396 B
YAML
name: 'Release Cleanup'
|
|
description: '清理舊成品'
|
|
author: 'Jeffery'
|
|
inputs:
|
|
keep_count:
|
|
description: '要保留的成品數量'
|
|
required: false
|
|
default: 2
|
|
runs:
|
|
using: 'docker'
|
|
image: 'Dockerfile'
|
|
env:
|
|
GITEA_SERVER_URL: ${{ gitea.server_url }}
|
|
GITEA_REPOSITORY: ${{ gitea.repository }}
|
|
GITEA_TOKEN: ${{ gitea.token }}
|
|
KEEP_COUNT: ${{ inputs.keep_count }}
|