Update meta data of docs

This commit is contained in:
Lunny Xiao
2024-08-06 16:44:42 -07:00
parent 4917bd18ae
commit af22422e1a
861 changed files with 1383 additions and 7148 deletions

View File

@@ -4,13 +4,13 @@ slug: "actions-variables"
sidebar_position: 25
---
## Variables
# Variables
You can create configuration variables on the user, organization and repository level.
The level of the variable depends on where you created it. When creating a variable, the
key will be converted to uppercase. You need use uppercase on the yaml file.
### Naming conventions
## Naming conventions
The following rules apply to variable names:
@@ -21,12 +21,12 @@ The following rules apply to variable names:
- Variable names must be unique at the level they are created at.
- Variable names must not be `CI`.
### Using variable
## Using variable
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.
### Precedence
## 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.