Skip to content

Commit b961b6a

Browse files
authored
Add note for actions var overwrite. (#57748)
1 parent d7c0d0d commit b961b6a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

content/actions/reference/workflows-and-actions/variables.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ When you set an environment variable, you cannot use any of the default environm
9191

9292
If a variable with the same name exists at multiple levels, the variable at the lowest level takes precedence. For example, if an organization-level variable has the same name as a repository-level variable, then the repository-level variable takes precedence. Similarly, if an organization, repository, and environment all have a variable with the same name, the environment-level variable takes precedence.
9393

94+
> [!NOTE]
95+
> Environment-level variables are only available on the runner after the job starts executing. This means that environment-level variables won't overwrite variables in the `env` and `vars` contexts.
96+
9497
For reusable workflows, the variables from the caller workflow's repository are used. Variables from the repository that contains the called workflow are not made available to the caller workflow.
9598

9699
## Limits for configuration variables

0 commit comments

Comments
 (0)