From d267d4edfe79e750333091d0cfddce55d9be4cbc Mon Sep 17 00:00:00 2001 From: bot Date: Thu, 5 Nov 2026 04:44:30 +0000 Subject: [PATCH 1/2] =?UTF-8?q?=E8=AA=BF=E6=95=B4=EF=BC=9A=E7=AC=AC?= =?UTF-8?q?=E4=B8=89=E6=96=B9=20action=20=E8=88=87=E5=B7=A5=E5=85=B7?= =?UTF-8?q?=E7=9A=84=E7=89=88=E6=9C=AC=E4=B9=9F=E5=BE=9E=20Gitea=20?= =?UTF-8?q?=E8=AE=8A=E6=95=B8=E5=8F=96=E5=BE=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- action.yml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index f80ee07..0d044a2 100644 --- a/README.md +++ b/README.md @@ -40,7 +40,7 @@ jobs: |`version`|這次發的版本(跳過時是下一版的預覽,沒有實際推送)| |`skip`|`true`=只動文件等檔案,沒有發版| -內部用的 `next-version` 版本取自呼叫端 repo 的 Gitea 變數 `ACTION_NEXT_VERSION_VERSION`,所以呼叫端要先設好。呼叫端用標籤引用 action(版本取自 Gitea 變數),發版後要把 `ACTION_<名稱>_VERSION` 改成新標籤才會採用。 +內部用的版本取自呼叫端 repo 的 Gitea 變數 `ACTION_CHECKOUT_VERSION`、`ACTION_NEXT_VERSION_VERSION`,所以呼叫端要先設好。呼叫端用標籤引用 action(版本取自 Gitea 變數),發版後要把 `ACTION_<名稱>_VERSION` 改成新標籤才會採用。 ## 開發與發版 diff --git a/action.yml b/action.yml index b22392c..bb54259 100644 --- a/action.yml +++ b/action.yml @@ -1,5 +1,5 @@ name: action-cd -description: "action repo 的共用 CD:checkout(PR 來源最新提交)→ next-version 算下一版 → 沒有跳過就打標籤並推送。只動文件、圖示、測試、.gitea/、go.mod 時跳過。內部用的 next-version 版本取自呼叫端的 Gitea 變數 ACTION_NEXT_VERSION_VERSION" +description: "action repo 的共用 CD:checkout(PR 來源最新提交)→ next-version 算下一版 → 沒有跳過就打標籤並推送。只動文件、圖示、測試、.gitea/、go.mod 時跳過。內部用的版本取自呼叫端的 Gitea 變數:ACTION_CHECKOUT_VERSION、ACTION_NEXT_VERSION_VERSION" inputs: token: description: "推送標籤用的權杖(需要 write:repository);空=用內建 github.token" @@ -17,7 +17,7 @@ outputs: runs: using: composite steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@${{ vars.ACTION_CHECKOUT_VERSION }} with: fetch-depth: 0 ref: ${{ github.event.pull_request.head.sha }} -- 2.53.0 From a517e0a73603409bb1855a08869863aecf6e1391 Mon Sep 17 00:00:00 2001 From: bot Date: Thu, 5 Nov 2026 04:53:09 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=E8=AA=BF=E6=95=B4=EF=BC=9Aci=20=E5=8F=AA?= =?UTF-8?q?=E5=9C=A8=20PR=20=E8=A7=B8=E7=99=BC=EF=BC=88=E6=8B=BF=E6=8E=89?= =?UTF-8?q?=20push:=20main=EF=BC=8C=E5=92=8C=E7=BE=BD=E8=97=8F=E4=B8=80?= =?UTF-8?q?=E8=87=B4=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/ci.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 6950cda..9789999 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -1,7 +1,5 @@ name: ci on: - push: - branches: [main] pull_request: concurrency: group: ci-${{ github.ref }} -- 2.53.0