Skip to content

Commit 1ff44fe

Browse files
Add context information for jobs.<job_id>.uses (github#34833)
Co-authored-by: Alex Nguyen <150945400+nguyenalex836@users.noreply.github.com>
1 parent 57fa911 commit 1ff44fe

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

content/actions/writing-workflows/choosing-what-your-workflow-does/accessing-contextual-information-about-workflow-runs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ Different contexts are available throughout a workflow run. For example, the `se
8888

8989
In addition, some functions may only be used in certain places. For example, the `hashFiles` function is not available everywhere.
9090

91-
The following table indicates where each context and special function can be used within a workflow. Unless listed below, a function can be used anywhere.
91+
The following table lists the restrictions on where each context and special function can be used within a workflow. The listed contexts are only available for the given workflow key, and may not be used anywhere else. Unless listed below, a function can be used anywhere.
9292

9393
| Workflow key | Context | Special functions |
9494
| ---- | ------- | ----------------- |

data/reusables/actions/reusable-workflow-calling-syntax.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33

44
In the first option, `{ref}` can be a SHA, a release tag, or a branch name. If a release tag and a branch have the same name, the release tag takes precedence over the branch name. Using the commit SHA is the safest option for stability and security. For more information, see "[AUTOTITLE](/actions/security-guides/security-hardening-for-github-actions#reusing-third-party-workflows)."
55

6-
If you use the second syntax option (without `{owner}/{repo}` and `@{ref}`) the called workflow is from the same commit as the caller workflow. Ref prefixes such as `refs/heads` and `refs/tags` are not allowed.
6+
If you use the second syntax option (without `{owner}/{repo}` and `@{ref}`) the called workflow is from the same commit as the caller workflow. Ref prefixes such as `refs/heads` and `refs/tags` are not allowed. You cannot use contexts or expressions in this keyword.

0 commit comments

Comments
 (0)