diff --git a/README.md b/README.md index 9d4f1a2..c6c3872 100644 --- a/README.md +++ b/README.md @@ -44,8 +44,8 @@ steps: with: # files 為非必填;指定要隨 release 一起釋出(上傳)的成品檔案,可省略。 files: dist/* - # is_debug 為非必填;設為 true 時,會轉傳給 calculate-version 產生測試標籤版本。 - is_debug: 'false' + # is_beta 為非必填;設為 true 時,會讓 calculate-version 產生測試標籤版本。 + is_beta: 'false' - name: 使用釋出版本號 run: echo "version=${{ steps.release.outputs.version }}" ``` @@ -73,7 +73,7 @@ jobs: 引用後,composite action 會依序執行: -1. **版本號計算**:呼叫 `docker-actions/calculate-version` 算出本次版本號,轉傳 `is_debug` 以支援測試標籤版本,並輸出 `outputs.version`。 +1. **版本號計算**:呼叫 `docker-actions/calculate-version` 算出本次版本號,轉傳 `is_beta` 以支援測試標籤版本,並輸出 `outputs.version`。 2. **組合釋出參數**:版本號非空時,組出 release 的 `name`(格式 ` v<版本>`)與 `tag_name`(格式 `v<版本>`)。 3. **檢查版本號輸出**:版本號為空時輸出錯誤訊息並 `exit 1`,中止流程,避免建立錯誤的 release/tag。 4. **釋出並標註成品版本**:以 `akkuman/gitea-release-action` 建立 release 並打 tag,附帶 `files` 指定的成品。 @@ -83,4 +83,4 @@ jobs: - 變數 `vars.ACTION_CALCULATE_VERSION`、`vars.ACTION_GITEA_RELEASE_VERSION`、`vars.ACTION_RELEASE_CLEANUP_VERSION`、`vars.ACTION_CHECKOUT_VERSION` 皆需設定且值有效。 - runner 需有 `ubuntu` label。 -- 預期結果:在 Gitea 上建立 `v<版本>` 的 release 與 tag;`is_debug` 為 `true` 時使用測試標籤版本,最後清理舊成品。 +- 預期結果:在 Gitea 上建立 `v<版本>` 的 release 與 tag;`is_beta` 為 `true` 時使用測試標籤版本,最後清理舊成品。 diff --git a/action.yml b/action.yml index 3dc6f67..c5050d0 100644 --- a/action.yml +++ b/action.yml @@ -9,7 +9,7 @@ inputs: files: description: '要釋出的成品檔案路徑或 glob' required: false - is_debug: + is_beta: description: '是否產生測試標籤版本' required: false default: 'false' @@ -26,7 +26,7 @@ runs: id: calculate-version uses: https://gitea.jsc.idv.tw/docker-actions/calculate-version@${{ vars.ACTION_CALCULATE_VERSION }} with: - is_debug: ${{ inputs.is_debug }} + is_beta: ${{ inputs.is_beta }} - name: 組合釋出參數 id: release-params