From 9b35ff094371a4b21afe5137fbbfef7a1dc32391 Mon Sep 17 00:00:00 2001 From: Nikolai Laevskii Date: Wed, 4 Oct 2023 08:24:37 +0200 Subject: [PATCH] Update readme --- packages/core/README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/packages/core/README.md b/packages/core/README.md index 8a471430a4..be94288896 100644 --- a/packages/core/README.md +++ b/packages/core/README.md @@ -262,6 +262,15 @@ var pid = core.getState("pidToKill"); process.kill(pid); ``` +#### Environment + +To check whether action runs on [GitHub Enterprise Server](https://docs.github.com/en/enterprise-server@3.10/admin/overview/about-github-enterprise-server) you can use isGhes helper: + +```js +const core = require('@actions/core') + +const isGithubEnterpriseServer = core.isGhes() +``` #### OIDC Token @@ -333,3 +342,5 @@ toPlatformPath('/foo/bar') // => \foo\bar // On a Linux runner. toPlatformPath('\\foo\\bar') // => /foo/bar ``` + +