Update documentation for 1.21 actions#26317
Merged
lunny merged 3 commits intogo-gitea:mainfrom Aug 4, 2023
Merged
Conversation
wolfogre
approved these changes
Aug 4, 2023
lunny
approved these changes
Aug 4, 2023
Collaborator
|
@sillyguodong please fix the merge conflicts. 🍵 |
delvh
requested changes
Aug 4, 2023
|
|
||
| One more thing is that it is recommended to register the runner if you want to change the labels. | ||
| It may be annoying to do this, so we may provide a better way to do it in the future. | ||
| After Gitea 1.21 released, you can change labels by modfiying `container.labels` in configuration file (if you don't have a configuration file, please refer to [configuration tutorials](#configuration)), and runner will declare the new labels which you defined in configuration file after executing `./act_runner daemon --config config.yaml`. |
Member
There was a problem hiding this comment.
Suggested change
| After Gitea 1.21 released, you can change labels by modfiying `container.labels` in configuration file (if you don't have a configuration file, please refer to [configuration tutorials](#configuration)), and runner will declare the new labels which you defined in configuration file after executing `./act_runner daemon --config config.yaml`. | |
| 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)). | |
| The runner will use these new labels as soon as you restart it, i.e., by calling `./act_runner daemon --config config.yaml`. |
|
|
||
| ## Configuration variable | ||
|
|
||
| You can create configuration varibales with user, organization, repository level. And the level of the variable depends on which setting panel you created in. |
Member
There was a problem hiding this comment.
Suggested change
| You can create configuration varibales with user, organization, repository level. And the level of the variable depends on which setting panel you created in. | |
| You can create configuration variables on the user, organization, and repository level. | |
| The level of the variable depends on where you created it. |
Comment on lines
+272
to
+282
| - Varibale names can only contain alphanumeric characters (`[a-z]`, `[A-Z]`, `[0-9]`) or underscores (`_`). Spaces are not allowed. | ||
|
|
||
| - Varibale names must not start with the `GITHUB_` and `GITEA_` prefix. | ||
|
|
||
| - Varibale names must not start with a number. | ||
|
|
||
| - Varibale names are not case-sensitive. | ||
|
|
||
| - Varibale names must be unique at the level they are created at. | ||
|
|
||
| - Varibale names must not be 'CI'. |
Member
There was a problem hiding this comment.
Suggested change
| - Varibale names can only contain alphanumeric characters (`[a-z]`, `[A-Z]`, `[0-9]`) or underscores (`_`). Spaces are not allowed. | |
| - Varibale names must not start with the `GITHUB_` and `GITEA_` prefix. | |
| - Varibale names must not start with a number. | |
| - Varibale names are not case-sensitive. | |
| - Varibale names must be unique at the level they are created at. | |
| - Varibale names must not be 'CI'. | |
| - Variable names can only contain alphanumeric characters (`[a-z]`, `[A-Z]`, `[0-9]`) or underscores (`_`). Spaces are not allowed. | |
| - Variable names must not start with the `GITHUB_` and `GITEA_` prefix. | |
| - Variable names must not start with a number. | |
| - Variable names are case-insensitive. | |
| - Variable names must be unique at the level they are created at. | |
| - Variable names must not be `CI`. |
|
|
||
| ### Using varibales | ||
|
|
||
| After creating configuration varibales, they will be automatically filled in the `vars` context. They are available to you with expression like `{{ vars.VARIABLE_NAME }}` in workflow. |
Member
There was a problem hiding this comment.
Suggested change
| After creating configuration varibales, they will be automatically filled in the `vars` context. They are available to you with expression like `{{ vars.VARIABLE_NAME }}` in workflow. | |
| After creating configuration variables, they will be automatically filled in the `vars` context. They can be accessed through expressions like `{{ vars.VARIABLE_NAME }}` in the workflow. |
Comment on lines
+290
to
+291
| If a variable with the same name exists at multiple levels, the variable at the lowest level takes precedence(the level of organization and user is higher than repository's). | ||
| For example, if an organization-level variable has the same name as a repository-level variable, then the repository-level variable takes precedence. |
Member
There was a problem hiding this comment.
Suggested change
| If a variable with the same name exists at multiple levels, the variable at the lowest level takes precedence(the level of organization and user is higher than repository's). | |
| For example, if an organization-level variable has the same name as a repository-level variable, then the repository-level variable takes precedence. | |
| If a variable with the same name exists at multiple levels, the variable at the lowest level takes precedence: | |
| A repository variable will always be chosen over an organization/user variable. |
Member
|
Oh. |
Contributor
Author
|
I will create a new PR to update😂 |
lunny
pushed a commit
that referenced
this pull request
Aug 4, 2023
follow #26317 fix typos and adjust grammer problems.
zjjhot
added a commit
to zjjhot/gitea
that referenced
this pull request
Aug 6, 2023
* 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) ...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
As title.
Close #26309
Related to #24724, #24806