From ac5e558aad72b2c6f259b4c3685842e6fc239f02 Mon Sep 17 00:00:00 2001 From: Bojun Chai Date: Mon, 20 Apr 2026 20:04:30 +0800 Subject: [PATCH] docs: fix typos (enviroment/evironment, seperate, non-existant) --- content/actions/reference/workflows-and-actions/contexts.md | 2 +- src/content-render/tests/octicon.ts | 2 +- src/rest/components/get-rest-code-samples.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/content/actions/reference/workflows-and-actions/contexts.md b/content/actions/reference/workflows-and-actions/contexts.md index be69fddf55c0..1e5471135441 100644 --- a/content/actions/reference/workflows-and-actions/contexts.md +++ b/content/actions/reference/workflows-and-actions/contexts.md @@ -174,7 +174,7 @@ The `github` context contains information about the workflow run and the event t |---------------|------|-------------| | `github` | `object` | The top-level context available during any job or step in a workflow. This object contains all the properties listed below. | | `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`. | -| `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 (using the corresponding enviroment variable): {% raw %} `cd "$GITHUB_ACTION_PATH"` {% endraw %}. For more information on evironment variables, see [AUTOTITLE](/actions/reference/security/secure-use#use-an-intermediate-environment-variable). | +| `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 (using the corresponding environment variable): {% raw %} `cd "$GITHUB_ACTION_PATH"` {% endraw %}. For more information on environment variables, see [AUTOTITLE](/actions/reference/security/secure-use#use-an-intermediate-environment-variable). | | `github.action_ref` | `string` | For a step executing an action, this is the ref of the action being executed. For example, `v2`.

{% data reusables.actions.composite-actions-unsupported-refs %} | | `github.action_repository` | `string` | For a step executing an action, this is the owner and repository name of the action. For example, `actions/checkout`.

{% data reusables.actions.composite-actions-unsupported-refs %} | | `github.action_status` | `string` | For a composite action, the current result of the composite action. | diff --git a/src/content-render/tests/octicon.ts b/src/content-render/tests/octicon.ts index 7c6387c46a49..f492e6e1986d 100644 --- a/src/content-render/tests/octicon.ts +++ b/src/content-render/tests/octicon.ts @@ -37,7 +37,7 @@ describe('octicon tag', () => { ) }) - test('throws an error with a non-existant octicon', async () => { + test('throws an error with a non-existent octicon', async () => { await expect(renderContent('{% octicon "pizza-patrol" %}')).rejects.toThrowError( 'Octicon pizza-patrol does not exist', ) diff --git a/src/rest/components/get-rest-code-samples.ts b/src/rest/components/get-rest-code-samples.ts index 3180f76ffd7d..df90225c0914 100644 --- a/src/rest/components/get-rest-code-samples.ts +++ b/src/rest/components/get-rest-code-samples.ts @@ -127,7 +127,7 @@ export function getShellExample( urlArg = `"${urlArg}"` } - // Overwrite curl examples since the github enterprise related apis are seperate from the dotcom api standards + // Overwrite curl examples since the github enterprise related apis are separate from the dotcom api standards if (operation.subcategory === 'management-console' || operation.subcategory === 'manage-ghes') { authHeader = '-u "api_key:your-password"' apiVersionHeader = ''