forked from actions/toolkit
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
17340b1
commit 9b35ff0
Showing
1 changed file
with
11 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/[email protected]/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 | ||
``` | ||
|
||
|