Update zh tw languages and fix some broken links (#455)

---------

Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: silverwind <2021+silverwind@noreply.gitea.com>
Reviewed-on: https://gitea.com/gitea/docs/pulls/455
Reviewed-by: silverwind <2021+silverwind@noreply.gitea.com>
This commit is contained in:
Lunny Xiao
2026-07-09 23:41:46 +00:00
parent c0f8a04185
commit 965c269495
652 changed files with 30864 additions and 30792 deletions

View File

@@ -6,25 +6,25 @@ sidebar_position: 120
# 與 GitHub Actions 的比較
儘管 Gitea Actions 設計為與 GitHub Actions 容,但它們之間仍存在一些差異。
儘管 Gitea Actions 設計為與 GitHub Actions 容,但它們之間仍存在一些差異。
## 附加功能
### 絕對操作 URL
Gitea Actions 支通過絕對 URL 定義操作,這意味著您可以使用來自任何 git 庫的操作。
Gitea Actions 支通過絕對 URL 定義操作,這意味著您可以使用來自任何 git 儲存庫的操作。
例如 `uses: https://github.com/actions/checkout@v4``uses: http://your_gitea.com/owner/repo@branch`
### 用 Go 編寫的操作
Gitea Actions 支用 Go 編寫操作。
請參閱 [建 Go 操作](https://blog.gitea.com/creating-go-actions/)。
Gitea Actions 支用 Go 編寫操作。
請參閱 [ Go 操作](https://blog.gitea.com/creating-go-actions/)。
### 支非標準語法 @yearly, @monthly, @weekly, @daily, @hourly 在計劃中
### 支非標準語法 @yearly, @monthly, @weekly, @daily, @hourly 在計劃中
GitHub Actions 不支這一點。https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule
GitHub Actions 不支這一點。https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule
## 不支的工作流程語法
## 不支的工作流程語法
### `concurrency`
@@ -68,58 +68,58 @@ GitHub Actions 不支持這一點。https://docs.github.com/en/actions/using-wor
請參閱 [GitHub Actions 的工作流程語法](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idruns-on)。
目前 Gitea Actions 只支 `runs-on: xyz``runs-on: [xyz]`
目前 Gitea Actions 只支 `runs-on: xyz``runs-on: [xyz]`
## 缺少的功能
### 包庫授權
### 包儲存庫授權
庫內運行的作業的 `GITEA_TOKEN` 應該能夠發布到相關的包庫(即上傳 OCI 映像)。請參閱 [自動令牌身份驗證](https://docs.github.com/en/actions/security-for-github-actions/security-guides/automatic-token-authentication#permissions-for-the-github_token) 中的“包”範圍的“默認訪問”。
儲存庫內運行的作業的 `GITEA_TOKEN` 應該能夠發布到相關的包儲存庫(即上傳 OCI 映像)。請參閱 [自動令牌身份驗證](https://docs.github.com/en/actions/security-for-github-actions/security-guides/automatic-token-authentication#permissions-for-the-github_token) 中的“包”範圍的“預設訪問”。
目前 Gitea Actions 尚未實現此功能。Gitea Actions 的一個解決方法是使用個人訪問令牌PAT。請參閱此 [github 問題和評論](https://github.com/go-gitea/gitea/issues/23642#issuecomment-2119876692) 以跟此功能。
目前 Gitea Actions 尚未實現此功能。Gitea Actions 的一個解決方法是使用個人存取權杖PAT。請參閱此 [github 問題和評論](https://github.com/go-gitea/gitea/issues/23642#issuecomment-2119876692) 以跟此功能。
### 問題匹配器
問題匹配器是一種掃描操作輸出以查找指定正則表達式模式並在 UI 中突出顯示該信息的方法。
問題匹配器是一種掃描操作輸出以查找指定正則表達式模式並在 UI 中突出顯示該資訊的方法。
請參閱 [問題匹配器](https://github.com/actions/toolkit/blob/main/docs/problem-matchers.md)。
目前 Gitea Actions 忽略它。
### 建錯誤註釋
### 建錯誤註釋
請參閱 [為錯誤建註釋](https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#example-creating-an-annotation-for-an-error)
請參閱 [為錯誤建註釋](https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#example-creating-an-annotation-for-an-error)
目前 Gitea Actions 忽略它。
### 表達式
對於 [表達式](https://docs.github.com/en/actions/learn-github-actions/expressions),僅支 [`always()`](https://docs.github.com/en/actions/learn-github-actions/expressions#always)。
對於 [表達式](https://docs.github.com/en/actions/learn-github-actions/expressions),僅支 [`always()`](https://docs.github.com/en/actions/learn-github-actions/expressions#always)。
## 缺少的 UI 功能
### 預處理和後處理步驟
預處理和後處理步驟在作業日誌用戶界面中沒有自己的部分。
預處理和後處理步驟在作業日誌使用者介面中沒有自己的部分。
### 服務步驟
服務步驟在作業日誌用戶界面中沒有自己的部分。
服務步驟在作業日誌使用者介面中沒有自己的部分。
## 不同的行為
### 下載操作
以前1.21.0 之前),`[actions].DEFAULT_ACTIONS_URL` 默認`https://gitea.com`
以前1.21.0 之前),`[actions].DEFAULT_ACTIONS_URL` 預設`https://gitea.com`
我們已經限制了此選項僅允許兩個值(`github``self`)。
當設`github` 時,新的默認Gitea 將從 `https://github.com` 下載非完全限定的操作。
例如,如果您使用 `uses: actions/checkout@v4`,它將從 `https://github.com/actions/checkout.git` 下載 checkout 庫。
當設`github` 時,新的預設Gitea 將從 `https://github.com` 下載非完全限定的操作。
例如,如果您使用 `uses: actions/checkout@v4`,它將從 `https://github.com/actions/checkout.git` 下載 checkout 儲存庫。
如果您想從其他 git 託管服器下載操作,可以使用絕對 URL例如 `uses: https://gitea.com/actions/checkout@v4`
如果您想從其他 git 託管服器下載操作,可以使用絕對 URL例如 `uses: https://gitea.com/actions/checkout@v4`
如果您的 Gitea 實例位於內部網或受限區域,您可以將 URL 設`self`,以便默認僅從您自己的實例下載操作。
如果您的 Gitea 實例位於內部網或受限區域,您可以將 URL 設`self`,以便預設僅從您自己的實例下載操作。
當然,您仍然可以在工作流程中使用絕對 URL。
有關 `[actions].DEFAULT_ACTIONS_URL` 配置的更多詳細信息,請參閱 [配置備忘單](../../administration/config-cheat-sheet.md#actions-actions)。
有關 `[actions].DEFAULT_ACTIONS_URL` 設定的更多詳細資訊,請參閱 [設定備忘單](../../administration/config-cheat-sheet.md)。
### 上下文可用性