調整:所有版本號改成從 Gitea 變數取得

This commit is contained in:
bot
2026-11-05 03:24:34 +00:00
parent c97f8b16aa
commit 2176296991
2 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -1,5 +1,5 @@
name: action-ci
description: "action repo 的共用 CI:shellcheck → Go 腳本測試(在 ci-env 容器裡,Go 版本取 go.mod)→ 建置映像檔。要在 checkout 之後使用,各步驟用輸入開關"
description: "action repo 的共用 CI:shellcheck → Go 腳本測試(在 ci-env 容器裡,Go 版本取 go.mod)→ 建置映像檔。內部用的 shellcheck、ci-env 版本取自呼叫端的 Gitea 變數 ACTION_SHELLCHECK_VERSION、ACTION_CI_ENV_VERSION。要在 checkout 之後使用,各步驟用輸入開關"
inputs:
shellcheck_files:
description: "shellcheck 要檢查的檔案(空白分隔,可用萬用字元);沒有符合的檔案就略過"
@@ -26,12 +26,12 @@ runs:
using: composite
steps:
- name: shellcheck
uses: https://gitea.jsc.idv.tw/actions/shellcheck@v0.0.1
uses: https://gitea.jsc.idv.tw/actions/shellcheck@${{ vars.ACTION_SHELLCHECK_VERSION }}
with:
files: ${{ inputs.shellcheck_files }}
- name: Go 測試
if: ${{ inputs.go_test == 'true' }}
uses: https://gitea.jsc.idv.tw/actions/ci-env@v0.0.2
uses: https://gitea.jsc.idv.tw/actions/ci-env@${{ vars.ACTION_CI_ENV_VERSION }}
env:
GO_VERSION: go.mod
with: