Files
calculate-version/entrypoint.sh
T
jiantw83 fa4f7cd50b
CI / 1. BUILD (pull_request) Successful in 1s
CI / 2. TEST (pull_request) Successful in 3s
CI / 3. RESULT (pull_request) Successful in 2s
docs(calculate-version): 重整 action 與 workflow 文件
2026-07-11 13:15:21 +00:00

12 lines
518 B
Bash
Executable File
Raw Permalink 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.
#!/bin/sh
# --------------------------------------------------
# 用途:啟動 calculate-version action,並將所有參數直接轉交給 Node 主程式。
# 更新日期:2026/07/11 21:08:44Asia/Taipei
# --------------------------------------------------
# 啟用嚴格模式,讓未定義變數與任一命令失敗都能立即中止流程。
set -eu
# 直接以 exec 取代 shell 行程,避免多一層 shell 包裝,並把所有參數原封不動傳給 Node。
exec node /action/src/index.js "$@"