You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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]>
Copy file name to clipboardExpand all lines: docs/content/administration/config-cheat-sheet.en-us.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -1399,8 +1399,8 @@ PROXY_HOSTS = *.github.com
1399
1399
-`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
1400
1400
1401
1401
`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`.
1404
1404
1405
1405
Please note that using `self` is not recommended for most cases, as it could make names globally ambiguous.
1406
1406
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.
1409
1409
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`.
1410
1410
However, later updates removed those options, and now the only options are `github` and `self`, with the default value being `github`.
1411
1411
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`.
Copy file name to clipboardExpand all lines: docs/content/usage/actions/comparison.en-us.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ Even though Gitea Actions is designed to be compatible with GitHub Actions, ther
22
22
### Absolute action URLs
23
23
24
24
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`.
26
26
27
27
### Actions written in Go
28
28
@@ -125,9 +125,9 @@ Services steps don't have their own section in the job log user interface.
125
125
Previously (Pre 1.21.0), `[actions].DEFAULT_ACTIONS_URL` defaulted to `https://gitea.com`.
126
126
We have since restricted this option to only allow two values (`github` and `self`).
127
127
When set to `github`, the new default, Gitea will download non-fully-qualified actions from `https://github.com`.
128
-
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`.
129
129
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@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`.
131
131
132
132
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.
133
133
Of course, you can still use absolute URLs in workflows.
Copy file name to clipboardExpand all lines: docs/content/usage/actions/design.en-us.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -95,15 +95,15 @@ The act runner must be able to connect to Gitea to receive tasks and send back t
95
95
### Connection 2, job containers to Gitea instance
96
96
97
97
The job containers have different network namespaces than the runner, even if they are on the same machine.
98
-
They need to connect to Gitea to fetch codes if there is `actions/checkout@v3` in the workflow, for example.
98
+
They need to connect to Gitea to fetch codes if there is `actions/checkout@v4` in the workflow, for example.
99
99
Fetching code is not always necessary to run some jobs, but it is required in most cases.
100
100
101
101
If you use a loopback address to register a runner, the runner can connect to Gitea when it is on the same machine.
102
102
However, if a job container tries to fetch code from localhost, it will fail because Gitea is not in the same container.
103
103
104
104
### Connection 3, act runner to internet
105
105
106
-
When you use some actions like `actions/checkout@v3`, the act runner downloads the scripts, not the job containers.
106
+
When you use some actions like `actions/checkout@v4`, the act runner downloads the scripts, not the job containers.
107
107
By default, it downloads from [gitea.com](http://gitea.com/), so it requires access to the internet.
108
108
It also downloads some docker images from Docker Hub by default, which also requires internet access.
109
109
@@ -116,7 +116,7 @@ And [Gitea Container Registry](usage/packages/container.md) can be used as a Doc
116
116
117
117
### Connection 4, job containers to internet
118
118
119
-
When using actions such as `actions/setup-go@v4`, it may be necessary to download resources from the internet to set up the Go language environment in job containers.
119
+
When using actions such as `actions/setup-go@v5`, it may be necessary to download resources from the internet to set up the Go language environment in job containers.
120
120
Therefore, access to the internet is required for the successful completion of these actions.
Copy file name to clipboardExpand all lines: docs/content/usage/actions/faq.en-us.md
+2-2
Original file line number
Diff line number
Diff line change
@@ -43,10 +43,10 @@ Still, this is completely optional since both options have the same effect at th
43
43
Not yet.
44
44
It is technically possible to implement, but we need to discuss whether it is necessary.
45
45
46
-
## Where will the runner download scripts when using actions such as `actions/checkout@v3`?
46
+
## Where will the runner download scripts when using actions such as `actions/checkout@v4`?
47
47
48
48
You may be aware that there are tens of thousands of [marketplace actions](https://github.com/marketplace?type=actions) in GitHub.
49
-
However, when you write `uses: actions/checkout@v3`, it actually downloads the scripts from [gitea.com/actions/checkout](http://gitea.com/actions/checkout) by default (not GitHub).
49
+
However, when you write `uses: actions/checkout@v4`, it actually downloads the scripts from [gitea.com/actions/checkout](http://gitea.com/actions/checkout) by default (not GitHub).
50
50
This is a mirror of [github.com/actions/checkout](http://github.com/actions/checkout), but it's impossible to mirror all of them.
51
51
That's why you may encounter failures when trying to use some actions that haven't been mirrored.
0 commit comments