You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/actions/learn-github-actions/contexts.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -181,12 +181,12 @@ The `github` context contains information about the workflow run and the event t
181
181
|`github`|`object`| The top-level context available during any job or step in a workflow. This object contains all the properties listed below. |
182
182
|`github.action`|`string`| The name of the action currently running, or the [`id`](/actions/learn-github-actions/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`. |
183
183
|`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. |
184
-
| `github.action_ref` | `string` | For a step executing an action, this is the ref of the action being executed. For example, `v2`.
185
-
| `github.action_repository` | `string` | For a step executing an action, this is the owner and repository name of the action. For example, `actions/checkout`.
184
+
|`github.action_ref`|`string`| For a step executing an action, this is the ref of the action being executed. For example, `v2`.|
185
+
|`github.action_repository`|`string`| For a step executing an action, this is the owner and repository name of the action. For example, `actions/checkout`.|
186
186
|`github.actor`|`string`| The username of the user that initiated the workflow run. |
187
187
|`github.api_url`|`string`| The URL of the {% data variables.product.prodname_dotcom %} REST API. |
188
188
|`github.base_ref`|`string`| The `base_ref` or target branch of the pull request in a workflow run. This property is only available when the event that triggers a workflow run is either `pull_request` or `pull_request_target`. |
189
-
| `github.env` | `string` | Path on the runner to the file that sets environment variables from workflow commands. This file is unique to the current step and is a different file for each step in a job. For more information, see "[Workflow commands for {% data variables.product.prodname_actions %}](/actions/learn-github-actions/workflow-commands-for-github-actions#setting-an-environment-variable)."
189
+
|`github.env`|`string`| Path on the runner to the file that sets environment variables from workflow commands. This file is unique to the current step and is a different file for each step in a job. For more information, see "[Workflow commands for {% data variables.product.prodname_actions %}](/actions/learn-github-actions/workflow-commands-for-github-actions#setting-an-environment-variable)."|
190
190
|`github.event`|`object`| The full event webhook payload. You can access individual properties of the event using this context. This object is identical to the webhook payload of the event that triggered the workflow run, and is different for each event. The webhooks for each {% data variables.product.prodname_actions %} event is linked in "[Events that trigger workflows](/articles/events-that-trigger-workflows/)." For example, for a workflow run triggered by the [`push` event](/actions/using-workflows/events-that-trigger-workflows#push), this object contains the contents of the [push webhook payload](/developers/webhooks-and-events/webhooks/webhook-events-and-payloads#push). |
191
191
|`github.event_name`|`string`| The name of the event that triggered the workflow run. |
192
192
|`github.event_path`|`string`| The path to the file on the runner that contains the full event webhook payload. |
0 commit comments