1
0
Fork 0

Update readme

pull/1546/head
Nikolai Laevskii 2023-10-04 08:24:37 +02:00
parent 3cc6d13dbb
commit 29212cf252
1 changed files with 11 additions and 0 deletions

View File

@ -262,6 +262,15 @@ var pid = core.getState("pidToKill");
process.kill(pid); 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 #### OIDC Token
@ -333,3 +342,5 @@ toPlatformPath('/foo/bar') // => \foo\bar
// On a Linux runner. // On a Linux runner.
toPlatformPath('\\foo\\bar') // => /foo/bar toPlatformPath('\\foo\\bar') // => /foo/bar
``` ```