Skip to content

Commit caceb43

Browse files
authored
feat: bump dessant/lock-threads and actions/setup-go to use nodejs20 runtime (#28565)
Update more actions to use nodejs20 runtime and also update the docs for checkout action usage. similar to: - #27836 - #27096 --------- Signed-off-by: Rui Chen <[email protected]>
1 parent 3d98d99 commit caceb43

20 files changed

+46
-46
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

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1399,8 +1399,8 @@ PROXY_HOSTS = *.github.com
13991399
- `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
14001400

14011401
`DEFAULT_ACTIONS_URL` indicates where the Gitea Actions runners should find the actions with relative path.
1402-
For example, `uses: actions/checkout@v3` means `https://github.com/actions/checkout@v3` 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@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`.
14041404

14051405
Please note that using `self` is not recommended for most cases, as it could make names globally ambiguous.
14061406
Additionally, it requires you to mirror all the actions you need to your Gitea instance, which may not be worth it.
@@ -1409,7 +1409,7 @@ Therefore, please use `self` only if you understand what you are doing.
14091409
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`.
14101410
However, later updates removed those options, and now the only options are `github` and `self`, with the default value being `github`.
14111411
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).
1412-
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`.
14131413

14141414
## Other (`other`)
14151415

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1335,8 +1335,8 @@ PROXY_HOSTS = *.github.com
13351335
- `MINIO_BASE_PATH`: **actions_log/**:Minio存储桶上的基本路径,仅在`STORAGE_TYPE``minio`时可用。
13361336

13371337
`DEFAULT_ACTIONS_URL` 指示 Gitea 操作运行程序应该在哪里找到带有相对路径的操作。
1338-
例如,`uses: actions/checkout@v3` 表示 `https://github.com/actions/checkout@v3`,因为 `DEFAULT_ACTIONS_URL` 的值为 `github`
1339-
它可以更改为 `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`
13401340

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

13501350
## 其他 (`other`)
13511351

0 commit comments

Comments
 (0)