diff --git a/action.yaml b/action.yaml index a0ad15b..4b174a7 100644 --- a/action.yaml +++ b/action.yaml @@ -1,10 +1,10 @@ name: 'CALCULATE VERSION' description: '計算版本號' author: 'Jeffery' -inputs: - RUNNER_TOKEN: - description: 'Gitea Runner 用來存取的 Token,ex: ${{ secrets.RUNNER_TOKEN }}' - required: true +# inputs: +# RUNNER_TOKEN: +# description: 'Gitea Runner 用來存取的 Token,ex: ${{ secrets.RUNNER_TOKEN }}' +# required: true outputs: VERSION: description: '計算出的新版本號' @@ -15,4 +15,4 @@ runs: env: GITEA_SERVER_URL: ${{ gitea.server_url }} GITEA_REPOSITORY: ${{ gitea.repository }} - RUNNER_TOKEN: ${{ inputs.RUNNER_TOKEN }} \ No newline at end of file + RUNNER_TOKEN: ${{ secrets.RUNNER_TOKEN }} \ No newline at end of file diff --git a/entrypoint.sh b/entrypoint.sh index c0ae05d..b10da44 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -12,8 +12,8 @@ echo "GITEA_SERVER_URL=$GITEA_SERVER_URL" && ([ -z "$GITEA_SERVER_URL" ] || [ "$ # 顯示 GITEA_REPOSITORY 參數,並檢查是否為空或 "null",如果是則輸出錯誤訊息並退出 echo "GITEA_REPOSITORY=$GITEA_REPOSITORY" && ([ -z "$GITEA_REPOSITORY" ] || [ "$GITEA_REPOSITORY" = "null" ]) && exit 1 -# 顯示 RUNNER_TOKEN 參數,並檢查是否為空或 "null",如果是則輸出錯誤訊息並退出 -echo "RUNNER_TOKEN=$RUNNER_TOKEN" && ([ -z "$RUNNER_TOKEN" ] || [ "$RUNNER_TOKEN" = "null" ]) && exit 1 +# 顯示 RUNNER_TOKEN 參數 +echo "RUNNER_TOKEN=$RUNNER_TOKEN" echo "=================================================="