Skip to content

Commit

Permalink
Add context information for jobs.<job_id>.uses (github#34833)
Browse files Browse the repository at this point in the history
Co-authored-by: Alex Nguyen <150945400+nguyenalex836@users.noreply.github.com>
  • Loading branch information
lachieh and nguyenalex836 authored Oct 21, 2024
1 parent 57fa911 commit 1ff44fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ Different contexts are available throughout a workflow run. For example, the `se

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

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.
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.

| Workflow key | Context | Special functions |
| ---- | ------- | ----------------- |
Expand Down
2 changes: 1 addition & 1 deletion data/reusables/actions/reusable-workflow-calling-syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@

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)."

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.
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 comments on commit 1ff44fe

Please sign in to comment.