Skip to content

Commit 9296ce0

Browse files
committed
Merge remote-tracking branch 'giteaofficial/main'
* giteaofficial/main: Add more ways to try (go-gitea#28581) Convert to url auth to header auth in tests (go-gitea#28484) Fix 500 error of searching commits (go-gitea#28576) improve possible performance bottleneck (go-gitea#28547) Use information from previous blame parts (go-gitea#28572) Make offline mode as default to no connect external avatar service by default (go-gitea#28548) Fix merging artifact chunks error when minio storage basepath is set (go-gitea#28555) feat: bump `dessant/lock-threads` and `actions/setup-go` to use nodejs20 runtime (go-gitea#28565) Update actions document about comparsion as Github Actions (go-gitea#28560) Fix inperformant query on retrifing review from database. (go-gitea#28552) Fix the issue ref rendering for wiki (go-gitea#28556) Add missing head of lfs client batch (go-gitea#28550) [skip ci] Updated translations via Crowdin Remove deadcode under models/issues (go-gitea#28536) Always enable caches (go-gitea#28527) Improve ObjectFormat interface (go-gitea#28496)
2 parents c919783 + 21229ed commit 9296ce0

File tree

195 files changed

+1994
-2054
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

195 files changed

+1994
-2054
lines changed

.github/workflows/cron-licenses.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
if: github.repository == 'go-gitea/gitea'
1212
steps:
1313
- uses: actions/checkout@v4
14-
- uses: actions/setup-go@v4
14+
- uses: actions/setup-go@v5
1515
with:
1616
go-version-file: go.mod
1717
check-latest: true

.github/workflows/cron-lock.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ jobs:
1717
runs-on: ubuntu-latest
1818
if: github.repository == 'go-gitea/gitea'
1919
steps:
20-
- uses: dessant/lock-threads@v4
20+
- uses: dessant/lock-threads@v5
2121
with:
2222
issue-inactive-days: 45

.github/workflows/pull-compliance.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
runs-on: ubuntu-latest
1818
steps:
1919
- uses: actions/checkout@v4
20-
- uses: actions/setup-go@v4
20+
- uses: actions/setup-go@v5
2121
with:
2222
go-version-file: go.mod
2323
check-latest: true
@@ -70,7 +70,7 @@ jobs:
7070
runs-on: ubuntu-latest
7171
steps:
7272
- uses: actions/checkout@v4
73-
- uses: actions/setup-go@v4
73+
- uses: actions/setup-go@v5
7474
with:
7575
go-version-file: go.mod
7676
check-latest: true
@@ -87,7 +87,7 @@ jobs:
8787
runs-on: ubuntu-latest
8888
steps:
8989
- uses: actions/checkout@v4
90-
- uses: actions/setup-go@v4
90+
- uses: actions/setup-go@v5
9191
with:
9292
go-version-file: go.mod
9393
check-latest: true
@@ -102,7 +102,7 @@ jobs:
102102
runs-on: ubuntu-latest
103103
steps:
104104
- uses: actions/checkout@v4
105-
- uses: actions/setup-go@v4
105+
- uses: actions/setup-go@v5
106106
with:
107107
go-version-file: go.mod
108108
check-latest: true
@@ -130,7 +130,7 @@ jobs:
130130
runs-on: ubuntu-latest
131131
steps:
132132
- uses: actions/checkout@v4
133-
- uses: actions/setup-go@v4
133+
- uses: actions/setup-go@v5
134134
with:
135135
go-version-file: go.mod
136136
check-latest: true
@@ -175,7 +175,7 @@ jobs:
175175
runs-on: ubuntu-latest
176176
steps:
177177
- uses: actions/checkout@v4
178-
- uses: actions/setup-go@v4
178+
- uses: actions/setup-go@v5
179179
with:
180180
go-version-file: go.mod
181181
check-latest: true

.github/workflows/pull-db-tests.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
- "9000:9000"
4040
steps:
4141
- uses: actions/checkout@v4
42-
- uses: actions/setup-go@v4
42+
- uses: actions/setup-go@v5
4343
with:
4444
go-version-file: go.mod
4545
check-latest: true
@@ -64,7 +64,7 @@ jobs:
6464
runs-on: ubuntu-latest
6565
steps:
6666
- uses: actions/checkout@v4
67-
- uses: actions/setup-go@v4
67+
- uses: actions/setup-go@v5
6868
with:
6969
go-version-file: go.mod
7070
check-latest: true
@@ -115,7 +115,7 @@ jobs:
115115
- "9000:9000"
116116
steps:
117117
- uses: actions/checkout@v4
118-
- uses: actions/setup-go@v4
118+
- uses: actions/setup-go@v5
119119
with:
120120
go-version-file: go.mod
121121
check-latest: true
@@ -165,7 +165,7 @@ jobs:
165165
- "993:993"
166166
steps:
167167
- uses: actions/checkout@v4
168-
- uses: actions/setup-go@v4
168+
- uses: actions/setup-go@v5
169169
with:
170170
go-version-file: go.mod
171171
check-latest: true
@@ -198,7 +198,7 @@ jobs:
198198
- "1433:1433"
199199
steps:
200200
- uses: actions/checkout@v4
201-
- uses: actions/setup-go@v4
201+
- uses: actions/setup-go@v5
202202
with:
203203
go-version-file: go.mod
204204
check-latest: true

.github/workflows/pull-e2e-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
runs-on: ubuntu-latest
1818
steps:
1919
- uses: actions/checkout@v4
20-
- uses: actions/setup-go@v4
20+
- uses: actions/setup-go@v5
2121
with:
2222
go-version-file: go.mod
2323
check-latest: true

.github/workflows/release-nightly.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
# fetch all commits instead of only the last as some branches are long lived and could have many between versions
1919
# fetch all tags to ensure that "git describe" reports expected Gitea version, eg. v1.21.0-dev-1-g1234567
2020
- run: git fetch --unshallow --quiet --tags --force
21-
- uses: actions/setup-go@v4
21+
- uses: actions/setup-go@v5
2222
with:
2323
go-version-file: go.mod
2424
check-latest: true
@@ -64,7 +64,7 @@ jobs:
6464
# fetch all commits instead of only the last as some branches are long lived and could have many between versions
6565
# fetch all tags to ensure that "git describe" reports expected Gitea version, eg. v1.21.0-dev-1-g1234567
6666
- run: git fetch --unshallow --quiet --tags --force
67-
- uses: actions/setup-go@v4
67+
- uses: actions/setup-go@v5
6868
with:
6969
go-version-file: go.mod
7070
check-latest: true
@@ -101,7 +101,7 @@ jobs:
101101
# fetch all commits instead of only the last as some branches are long lived and could have many between versions
102102
# fetch all tags to ensure that "git describe" reports expected Gitea version, eg. v1.21.0-dev-1-g1234567
103103
- run: git fetch --unshallow --quiet --tags --force
104-
- uses: actions/setup-go@v4
104+
- uses: actions/setup-go@v5
105105
with:
106106
go-version-file: go.mod
107107
check-latest: true

.github/workflows/release-tag-rc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
# fetch all commits instead of only the last as some branches are long lived and could have many between versions
1818
# fetch all tags to ensure that "git describe" reports expected Gitea version, eg. v1.21.0-dev-1-g1234567
1919
- run: git fetch --unshallow --quiet --tags --force
20-
- uses: actions/setup-go@v4
20+
- uses: actions/setup-go@v5
2121
with:
2222
go-version-file: go.mod
2323
check-latest: true

.github/workflows/release-tag-version.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
# fetch all commits instead of only the last as some branches are long lived and could have many between versions
2020
# fetch all tags to ensure that "git describe" reports expected Gitea version, eg. v1.21.0-dev-1-g1234567
2121
- run: git fetch --unshallow --quiet --tags --force
22-
- uses: actions/setup-go@v4
22+
- uses: actions/setup-go@v5
2323
with:
2424
go-version-file: go.mod
2525
check-latest: true

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,16 @@ painless way of setting up a self-hosted Git service.
6262
As Gitea is written in Go, it works across **all** the platforms and
6363
architectures that are supported by Go, including Linux, macOS, and
6464
Windows on x86, amd64, ARM and PowerPC architectures.
65-
You can try it out using [the online demo](https://try.gitea.io/).
6665
This project has been
6766
[forked](https://blog.gitea.com/welcome-to-gitea/) from
6867
[Gogs](https://gogs.io) since November of 2016, but a lot has changed.
6968

69+
For online demonstrations, you can visit [try.gitea.io](https://try.gitea.io).
70+
71+
For accessing free Gitea service (with a limited number of repositories), you can visit [gitea.com](https://gitea.com/user/login).
72+
73+
To quickly deploy your own dedicated Gitea instance on Gitea Cloud, you can start a free trial at [cloud.gitea.com](https://cloud.gitea.com).
74+
7075
## Building
7176

7277
From the root of the source tree, run:

README_ZH.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,11 @@
5858

5959
Gitea 的首要目标是创建一个极易安装,运行非常快速,安装和使用体验良好的自建 Git 服务。我们采用 Go 作为后端语言,这使我们只要生成一个可执行程序即可。并且他还支持跨平台,支持 Linux, macOS 和 Windows 以及各种架构,除了 x86,amd64,还包括 ARM 和 PowerPC。
6060

61-
如果您想试用一下,请访问 [在线Demo](https://try.gitea.io/)
61+
如果你想试用在线演示,请访问 [try.gitea.io](https://try.gitea.io/)
62+
63+
如果你想使用免费的 Gitea 服务(有仓库数量限制),请访问 [gitea.com](https://gitea.com/user/login)
64+
65+
如果你想在 Gitea Cloud 上快速部署你自己独享的 Gitea 实例,请访问 [cloud.gitea.com](https://cloud.gitea.com) 开始免费试用。
6266

6367
## 提示
6468

cmd/hook.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ Gitea or set your environment appropriately.`, "")
377377
newCommitIDs[count] = string(fields[1])
378378
refFullNames[count] = git.RefName(fields[2])
379379

380-
commitID, _ := git.IDFromString(newCommitIDs[count])
380+
commitID, _ := git.NewIDFromString(newCommitIDs[count])
381381
if refFullNames[count] == git.BranchPrefix+"master" && !commitID.IsZero() && count == total {
382382
masterPushed = true
383383
}
@@ -671,7 +671,7 @@ Gitea or set your environment appropriately.`, "")
671671
if err != nil {
672672
return err
673673
}
674-
commitID, _ := git.IDFromString(rs.OldOID)
674+
commitID, _ := git.NewIDFromString(rs.OldOID)
675675
if !commitID.IsZero() {
676676
err = writeDataPktLine(ctx, os.Stdout, []byte("option old-oid "+rs.OldOID))
677677
if err != nil {

custom/conf/app.example.ini

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ RUN_USER = ; git
234234
;MINIMUM_KEY_SIZE_CHECK = false
235235
;;
236236
;; Disable CDN even in "prod" mode
237-
;OFFLINE_MODE = false
237+
;OFFLINE_MODE = true
238238
;;
239239
;; TLS Settings: Either ACME or manual
240240
;; (Other common TLS configuration are found before)
@@ -1705,9 +1705,6 @@ LEVEL = Info
17051705
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
17061706
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
17071707
;;
1708-
;; if the cache enabled
1709-
;ENABLED = true
1710-
;;
17111708
;; Either "memory", "redis", "memcache", or "twoqueue". default is "memory"
17121709
;ADAPTER = memory
17131710
;;
@@ -1732,8 +1729,6 @@ LEVEL = Info
17321729
;[cache.last_commit]
17331730
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
17341731
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
1735-
;; if the cache enabled
1736-
;ENABLED = true
17371732
;;
17381733
;; Time to keep items in cache if not used, default is 8760 hours.
17391734
;; Setting it to -1 disables caching

docs/content/administration/config-cheat-sheet.en-us.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ The following configuration set `Content-Type: application/vnd.android.package-a
357357
- `SSH_PER_WRITE_PER_KB_TIMEOUT`: **10s**: Timeout per Kb written to SSH connections.
358358
- `MINIMUM_KEY_SIZE_CHECK`: **true**: Indicate whether to check minimum key size with corresponding type.
359359

360-
- `OFFLINE_MODE`: **false**: Disables use of CDN for static files and Gravatar for profile pictures.
360+
- `OFFLINE_MODE`: **true**: Disables use of CDN for static files and Gravatar for profile pictures.
361361
- `CERT_FILE`: **https/cert.pem**: Cert file path used for HTTPS. When chaining, the server certificate must come first, then intermediate CA certificates (if any). This is ignored if `ENABLE_ACME=true`. Paths are relative to `CUSTOM_PATH`.
362362
- `KEY_FILE`: **https/key.pem**: Key file path used for HTTPS. This is ignored if `ENABLE_ACME=true`. Paths are relative to `CUSTOM_PATH`.
363363
- `STATIC_ROOT_PATH`: **_`StaticRootPath`_**: Upper level of template and static files path.
@@ -763,7 +763,6 @@ and
763763

764764
## Cache (`cache`)
765765

766-
- `ENABLED`: **true**: Enable the cache.
767766
- `ADAPTER`: **memory**: Cache engine adapter, either `memory`, `redis`, `redis-cluster`, `twoqueue` or `memcache`. (`twoqueue` represents a size limited LRU cache.)
768767
- `INTERVAL`: **60**: Garbage Collection interval (sec), for memory and twoqueue cache only.
769768
- `HOST`: **_empty_**: Connection string for `redis`, `redis-cluster` and `memcache`. For `twoqueue` sets configuration for the queue.
@@ -775,7 +774,6 @@ and
775774

776775
## Cache - LastCommitCache settings (`cache.last_commit`)
777776

778-
- `ENABLED`: **true**: Enable the cache.
779777
- `ITEM_TTL`: **8760h**: Time to keep items in cache if not used, Setting it to -1 disables caching.
780778
- `COMMITS_COUNT`: **1000**: Only enable the cache when repository's commits count great than.
781779

@@ -1401,8 +1399,8 @@ PROXY_HOSTS = *.github.com
14011399
- `SKIP_WORKFLOW_STRINGS`: **[skip ci],[ci skip],[no ci],[skip actions],[actions skip]**: Strings committers can place inside a commit message to skip executing the corresponding actions workflow
14021400

14031401
`DEFAULT_ACTIONS_URL` indicates where the Gitea Actions runners should find the actions with relative path.
1404-
For example, `uses: actions/checkout@v3` means `https://github.com/actions/checkout@v3` since the value of `DEFAULT_ACTIONS_URL` is `github`.
1405-
And it can be changed to `self` to make it `root_url_of_your_gitea/actions/checkout@v3`.
1402+
For example, `uses: actions/checkout@v4` means `https://github.com/actions/checkout@v4` since the value of `DEFAULT_ACTIONS_URL` is `github`.
1403+
And it can be changed to `self` to make it `root_url_of_your_gitea/actions/checkout@v4`.
14061404

14071405
Please note that using `self` is not recommended for most cases, as it could make names globally ambiguous.
14081406
Additionally, it requires you to mirror all the actions you need to your Gitea instance, which may not be worth it.
@@ -1411,7 +1409,7 @@ Therefore, please use `self` only if you understand what you are doing.
14111409
In earlier versions (`<= 1.19`), `DEFAULT_ACTIONS_URL` could be set to any custom URLs like `https://gitea.com` or `http://your-git-server,https://gitea.com`, and the default value was `https://gitea.com`.
14121410
However, later updates removed those options, and now the only options are `github` and `self`, with the default value being `github`.
14131411
However, if you want to use actions from other git server, you can use a complete URL in `uses` field, it's supported by Gitea (but not GitHub).
1414-
Like `uses: https://gitea.com/actions/checkout@v3` or `uses: http://your-git-server/actions/checkout@v3`.
1412+
Like `uses: https://gitea.com/actions/checkout@v4` or `uses: http://your-git-server/actions/checkout@v4`.
14151413

14161414
## Other (`other`)
14171415

docs/content/administration/config-cheat-sheet.zh-cn.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ menu:
346346
- `SSH_PER_WRITE_TIMEOUT`: **30s**:对 SSH 连接的任何写入设置超时。(将其设置为 -1 可以禁用所有超时。)
347347
- `SSH_PER_WRITE_PER_KB_TIMEOUT`: **10s**:对写入 SSH 连接的每 KB 设置超时。
348348
- `MINIMUM_KEY_SIZE_CHECK`: **true**:指示是否检查最小密钥大小与相应类型。
349-
- `OFFLINE_MODE`: **false**:禁用 CDN 用于静态文件和 Gravatar 用于个人资料图片。
349+
- `OFFLINE_MODE`: **true**:禁用 CDN 用于静态文件和 Gravatar 用于个人资料图片。
350350
- `CERT_FILE`: **https/cert.pem**:用于 HTTPS 的证书文件路径。在链接时,服务器证书必须首先出现,然后是中间 CA 证书(如果有)。如果 `ENABLE_ACME=true`,则此设置会被忽略。路径相对于 `CUSTOM_PATH`
351351
- `KEY_FILE`: **https/key.pem**:用于 HTTPS 的密钥文件路径。如果 `ENABLE_ACME=true`,则此设置会被忽略。路径相对于 `CUSTOM_PATH`
352352
- `STATIC_ROOT_PATH`: **_`StaticRootPath`_**:模板和静态文件路径的上一级。
@@ -721,7 +721,6 @@ Gitea 创建以下非唯一队列:
721721

722722
## 缓存 (`cache`)
723723

724-
- `ENABLED`: **true**: 是否启用缓存。
725724
- `ADAPTER`: **memory**: 缓存引擎,可以为 `memory`, `redis`, `redis-cluster`, `twoqueue``memcache`. (`twoqueue` 代表缓冲区固定的LRU缓存)
726725
- `INTERVAL`: **60**: 垃圾回收间隔(秒),只对`memory``towqueue`有效。
727726
- `HOST`: **_empty_**: 缓存配置。`redis`, `redis-cluster``memcache`配置连接字符串;`twoqueue` 设置队列参数
@@ -733,7 +732,6 @@ Gitea 创建以下非唯一队列:
733732

734733
### 缓存 - 最后提交缓存设置 (`cache.last_commit`)
735734

736-
- `ENABLED`: **true**:是否启用缓存。
737735
- `ITEM_TTL`: **8760h**:如果未使用,保持缓存中的项目的时间,将其设置为 -1 会禁用缓存。
738736
- `COMMITS_COUNT`: **1000**:仅在存储库的提交计数大于时启用缓存。
739737

@@ -1337,8 +1335,8 @@ PROXY_HOSTS = *.github.com
13371335
- `MINIO_BASE_PATH`: **actions_log/**:Minio存储桶上的基本路径,仅在`STORAGE_TYPE``minio`时可用。
13381336

13391337
`DEFAULT_ACTIONS_URL` 指示 Gitea 操作运行程序应该在哪里找到带有相对路径的操作。
1340-
例如,`uses: actions/checkout@v3` 表示 `https://github.com/actions/checkout@v3`,因为 `DEFAULT_ACTIONS_URL` 的值为 `github`
1341-
它可以更改为 `self`,以使其成为 `root_url_of_your_gitea/actions/checkout@v3`
1338+
例如,`uses: actions/checkout@v4` 表示 `https://github.com/actions/checkout@v4`,因为 `DEFAULT_ACTIONS_URL` 的值为 `github`
1339+
它可以更改为 `self`,以使其成为 `root_url_of_your_gitea/actions/checkout@v4`
13421340

13431341
请注意,对于大多数情况,不建议使用 `self`,因为它可能使名称在全局范围内产生歧义。
13441342
此外,它要求您将所有所需的操作镜像到您的 Gitea 实例,这可能不值得。
@@ -1347,7 +1345,7 @@ PROXY_HOSTS = *.github.com
13471345
在早期版本(`<= 1.19`)中,`DEFAULT_ACTIONS_URL` 可以设置为任何自定义 URL,例如 `https://gitea.com``http://your-git-server,https://gitea.com`,默认值为 `https://gitea.com`
13481346
然而,后来的更新删除了这些选项,现在唯一的选项是 `github``self`,默认值为 `github`
13491347
但是,如果您想要使用其他 Git 服务器中的操作,您可以在 `uses` 字段中使用完整的 URL,Gitea 支持此功能(GitHub 不支持)。
1350-
例如 `uses: https://gitea.com/actions/checkout@v3``uses: http://your-git-server/actions/checkout@v3`
1348+
例如 `uses: https://gitea.com/actions/checkout@v4``uses: http://your-git-server/actions/checkout@v4`
13511349

13521350
## 其他 (`other`)
13531351

docs/content/usage/actions/comparison.en-us.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,17 @@ Even though Gitea Actions is designed to be compatible with GitHub Actions, ther
2222
### Absolute action URLs
2323

2424
Gitea Actions supports defining actions via absolute URL, which means that you can use actions from any git repository.
25-
Like `uses: https://github.com/actions/checkout@v3` or `uses: http://your_gitea.com/owner/repo@branch`.
25+
Like `uses: https://github.com/actions/checkout@v4` or `uses: http://your_gitea.com/owner/repo@branch`.
2626

2727
### Actions written in Go
2828

2929
Gitea Actions supports writing actions in Go.
3030
See [Creating Go Actions](https://blog.gitea.com/creating-go-actions/).
3131

32+
### Support the non-standard syntax @yearly, @monthly, @weekly, @daily, @hourly on schedule
33+
34+
Github Actions doesn't support that. https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule
35+
3236
## Unsupported workflows syntax
3337

3438
### `concurrency`
@@ -110,16 +114,20 @@ It's ignored by Gitea Actions now.
110114

111115
Pre and Post steps don't have their own section in the job log user interface.
112116

117+
### Services steps
118+
119+
Services steps don't have their own section in the job log user interface.
120+
113121
## Different behavior
114122

115123
### Downloading actions
116124

117125
Previously (Pre 1.21.0), `[actions].DEFAULT_ACTIONS_URL` defaulted to `https://gitea.com`.
118126
We have since restricted this option to only allow two values (`github` and `self`).
119127
When set to `github`, the new default, Gitea will download non-fully-qualified actions from `https://github.com`.
120-
For example, if you use `uses: actions/checkout@v3`, it will download the checkout repository from `https://github.com/actions/checkout.git`.
128+
For example, if you use `uses: actions/checkout@v4`, it will download the checkout repository from `https://github.com/actions/checkout.git`.
121129

122-
If you want to download an action from another git hoster, you can use an absolute URL, e.g. `uses: https://gitea.com/actions/checkout@v3`.
130+
If you want to download an action from another git hoster, you can use an absolute URL, e.g. `uses: https://gitea.com/actions/checkout@v4`.
123131

124132
If your Gitea instance is in an intranet or a restricted area, you can set the URL to `self` to only download actions from your own instance by default.
125133
Of course, you can still use absolute URLs in workflows.

0 commit comments

Comments
 (0)