改為計算版本 Docker Action #2

Merged
admin merged 1 commits from develop into master 2026-06-25 11:01:01 +00:00
Member

變更摘要

  • 將原本的 AI Code Review Docker Action 改為 Calculate Version Action。
  • 移除 Node.js app 與相關測試、角色 prompt,改由 entrypoint.sh 以 bash、curl、jq 計算版本。
  • 新增 is_beta input 與 version output,並以 GITEA_TOKEN 呼叫 Gitea release API。
  • 修正 workflow 檔案路徑,將原本含空白的 .gitea / workflows 移到正常的 .gitea/workflows

影響範圍

  • action.yaml:更新 action 名稱、輸入、輸出與容器環境變數。
  • entrypoint.sh:新增 release 查詢、stable/beta 版本計算與 GitHub output 寫入。
  • Dockerfile:移除 Node.js/npm,改安裝 bash、curl、jq。
  • app/:移除不再使用的 Node.js code review 實作與測試。
  • .gitea/workflows/:保留 CI/CD workflow 並修正引用 action 名稱。

驗證

  • 已執行 bash -n entrypoint.sh
  • 已用空 release、stable release、beta release 案例驗證 calculate_version 輸出。

注意事項

  • 這是 action 用途轉換,會移除原 AI code review 行為。
## 變更摘要 - 將原本的 AI Code Review Docker Action 改為 Calculate Version Action。 - 移除 Node.js app 與相關測試、角色 prompt,改由 `entrypoint.sh` 以 bash、curl、jq 計算版本。 - 新增 `is_beta` input 與 `version` output,並以 `GITEA_TOKEN` 呼叫 Gitea release API。 - 修正 workflow 檔案路徑,將原本含空白的 `.gitea / workflows` 移到正常的 `.gitea/workflows`。 ## 影響範圍 - `action.yaml`:更新 action 名稱、輸入、輸出與容器環境變數。 - `entrypoint.sh`:新增 release 查詢、stable/beta 版本計算與 GitHub output 寫入。 - `Dockerfile`:移除 Node.js/npm,改安裝 bash、curl、jq。 - `app/`:移除不再使用的 Node.js code review 實作與測試。 - `.gitea/workflows/`:保留 CI/CD workflow 並修正引用 action 名稱。 ## 驗證 - 已執行 `bash -n entrypoint.sh`。 - 已用空 release、stable release、beta release 案例驗證 `calculate_version` 輸出。 ## 注意事項 - 這是 action 用途轉換,會移除原 AI code review 行為。
jiantw83 added 1 commit 2026-06-25 10:53:19 +00:00
admin approved these changes 2026-06-25 11:00:59 +00:00
admin merged commit 619fba79f5 into master 2026-06-25 11:01:01 +00:00
Sign in to join this conversation.
No Reviewers
No labels
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: old-docker-actions/calculate-version#2