Skip to content

Commit 755ee6c

Browse files
authored
Actions focus area bug fixes for the week of September 27, 2023 (#43416)
1 parent 5061714 commit 755ee6c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

content/actions/learn-github-actions/contexts.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ versions:
1414
ghae: '*'
1515
ghec: '*'
1616
---
17-
17+
1818
{% data reusables.actions.enterprise-github-hosted-runners %}
1919

2020
## About contexts
@@ -185,8 +185,8 @@ The `github` context contains information about the workflow run and the event t
185185
| `github` | `object` | The top-level context available during any job or step in a workflow. This object contains all the properties listed below. |
186186
| `github.action` | `string` | The name of the action currently running, or the [`id`](/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsid) of a step. {% data variables.product.prodname_dotcom %} removes special characters, and uses the name `__run` when the current step runs a script without an `id`. If you use the same action more than once in the same job, the name will include a suffix with the sequence number with underscore before it. For example, the first script you run will have the name `__run`, and the second script will be named `__run_2`. Similarly, the second invocation of `actions/checkout` will be `actionscheckout2`. |
187187
| `github.action_path` | `string` | The path where an action is located. This property is only supported in composite actions. You can use this path to access files located in the same repository as the action, for example by changing directories to the path: {% raw %} `cd ${{ github.action_path }}` {% endraw %}. |
188-
| `github.action_ref` | `string` | For a step executing an action, this is the ref of the action being executed. For example, `v2`. |
189-
| `github.action_repository` | `string` | For a step executing an action, this is the owner and repository name of the action. For example, `actions/checkout`. |
188+
| `github.action_ref` | `string` | For a step executing an action, this is the ref of the action being executed. For example, `v2`.<br><br>{% data reusables.actions.composite-actions-unsupported-refs %} |
189+
| `github.action_repository` | `string` | For a step executing an action, this is the owner and repository name of the action. For example, `actions/checkout`.<br><br>{% data reusables.actions.composite-actions-unsupported-refs %} |
190190
| `github.action_status` | `string` | For a composite action, the current result of the composite action. |
191191
| `github.actor` | `string` | {% ifversion actions-stable-actor-ids %}The username of the user that triggered the initial workflow run. If the workflow run is a re-run, this value may differ from `github.triggering_actor`. Any workflow re-runs will use the privileges of `github.actor`, even if the actor initiating the re-run (`github.triggering_actor`) has different privileges.{% else %}The username of the user that initiated the workflow run.{% endif %} |
192192
{%- ifversion actions-oidc-custom-claims %}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Do not use in the `run` context. To make this context work with composite actions, reference it within the `env` context of the composite action.

0 commit comments

Comments
 (0)