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
* upstream/main: (25 commits)
[docs] Add missing backtick in quickstart.zh-cn.md (go-gitea#26349)
Fix incorrect CLI exit code and duplicate error message (go-gitea#26346)
Improve CLI and messages (go-gitea#26341)
Remove backslashed newlines on markdown (go-gitea#26344)
Hide `last indexed SHA` when a repo could not be indexed yet (go-gitea#26340)
Fix log typo in task.go (go-gitea#26337)
Prevent newline errors with Debian packages (go-gitea#26332)
Fix the bug when getting files changed for `pull_request_target` event (go-gitea#26320)
Refactor backend SVG package and add tests (go-gitea#26335)
Fix bug with sqlite load read (go-gitea#26305)
Remove commit load branches and tags in wiki repo (go-gitea#26304)
Add highlight to selected repos in milestone dashboard (go-gitea#26300)
Do not show Profile README when repository is private (go-gitea#26295)
Fix incorrect color of selected assignees when create issue (go-gitea#26324)
Delete `issue_service.CreateComment` (go-gitea#26298)
Make git batch operations use parent context timeout instead of default timeout (go-gitea#26325)
Fix typos and grammer problems for actions documentation (go-gitea#26328)
Update documentation for 1.21 actions (go-gitea#26317)
Fix the wrong derive path (go-gitea#26271)
Support getting changed files when commit ID is `EmptySHA` (go-gitea#26290)
...
app.Description=`By default, Gitea will start serving using the web-server with no argument, which can alternatively be run by running the subcommand "web".`
126
+
app.Version=version+versionExtra
155
127
app.EnableBashCompletion=true
156
128
157
129
// these sub-commands need to use config file
@@ -187,6 +159,7 @@ func NewMainApp() *cli.App {
187
159
app.DefaultCommand=CmdWeb.Name
188
160
189
161
globalFlags:=appGlobalFlags()
162
+
app.Flags=append(app.Flags, cli.VersionFlag)
190
163
app.Flags=append(app.Flags, globalFlags...)
191
164
app.HideHelp=true// use our own help action to show helps (with more information like default config)
showWebStartupMessage("Prepare to run web server")
160
159
161
160
ifsetting.AppWorkPathMismatch {
162
161
log.Error("WORK_PATH from config %q doesn't match other paths from environment variables or command arguments. "+
163
-
"Only WORK_PATH in config should be set and used. Please remove the other outdated work paths from environment variables and command arguments", setting.CustomConf)
162
+
"Only WORK_PATH in config should be set and used. Please make sure the path in config file is correct, "+
163
+
"remove the other outdated work paths from environment variables and command arguments", setting.CustomConf)
log.Error("Unable to prepare saving WORK_PATH=%s to config %q: %v\nYou must set it manually, otherwise there might be bugs when accessing the git repositories.", setting.AppWorkPath, setting.CustomConf, err)
170
+
log.Error("Unable to prepare saving WORK_PATH=%s to config %q: %v\nYou should set it manually, otherwise there might be bugs when accessing the git repositories.", setting.AppWorkPath, setting.CustomConf, err)
log.Error("Unable to update WORK_PATH=%s to config %q: %v\nYou must set it manually, otherwise there might be bugs when accessing the git repositories.", setting.AppWorkPath, setting.CustomConf, err)
175
+
log.Error("Unable to update WORK_PATH=%s to config %q: %v\nYou should set it manually, otherwise there might be bugs when accessing the git repositories.", setting.AppWorkPath, setting.CustomConf, err)
Copy file name to clipboardExpand all lines: docs/content/usage/actions/act-runner.en-us.md
+33-2Lines changed: 33 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -245,8 +245,8 @@ You can find more useful images on [act images](https://github.com/nektos/act/bl
245
245
If you want to run jobs in the host directly, you can change it to `ubuntu-22.04:host` or just `ubuntu-22.04`, the `:host` is optional.
246
246
However, we suggest you to use a special name like `linux_amd64:host` or `windows:host` to avoid misusing it.
247
247
248
-
One more thing is that it is recommended to register the runner if you want to change the labels.
249
-
It may be annoying to do this, so we may provide a better way to do it in the future.
248
+
Starting with Gitea 1.21, you can change labels by modifying `container.labels` in the runner configuration file (if you don't have a configuration file, please refer to [configuration tutorials](#configuration)).
249
+
The runner will use these new labels as soon as you restart it, i.e., by calling `./act_runner daemon --config config.yaml`.
250
250
251
251
## Running
252
252
@@ -261,3 +261,34 @@ After you have registered the runner, you can run it by running the following co
261
261
The runner will fetch jobs from the Gitea instance and run them automatically.
262
262
263
263
Since act runner is still in development, it is recommended to check the latest version and upgrade it regularly.
264
+
265
+
## Configuration variable
266
+
267
+
You can create configuration variables on the user, organization and repository level.
268
+
The level of the variable depends on where you created it.
269
+
270
+
### Naming conventions
271
+
272
+
The following rules apply to variable names:
273
+
274
+
- Variable names can only contain alphanumeric characters (`[a-z]`, `[A-Z]`, `[0-9]`) or underscores (`_`). Spaces are not allowed.
275
+
276
+
- Variable names must not start with the `GITHUB_` and `GITEA_` prefix.
277
+
278
+
- Variable names must not start with a number.
279
+
280
+
- Variable names are case-insensitive.
281
+
282
+
- Variable names must be unique at the level they are created at.
283
+
284
+
- Variable names must not be `CI`.
285
+
286
+
### Using variable
287
+
288
+
After creating configuration variables, they will be automatically filled in the `vars` context.
289
+
They can be accessed through expressions like `{{ vars.VARIABLE_NAME }}` in the workflow.
290
+
291
+
### Precedence
292
+
293
+
If a variable with the same name exists at multiple levels, the variable at the lowest level takes precedence:
294
+
A repository variable will always be chosen over an organization/user variable.
0 commit comments