update node_modules

This commit is contained in:
Slawomir Jaranowski
2019-11-25 19:19:07 +01:00
parent c16c7e68b1
commit 24fd865d62
7 changed files with 101 additions and 34 deletions

39
node_modules/@actions/core/README.md generated vendored
View File

@ -32,10 +32,12 @@ Since each step runs in a separate process, you can use `exportVariable` to add
core.exportVariable('envVar', 'Val');
```
Exporting a secret exports the variable but also registers the secret with the runner to ensure it is masked in logs.
#### Setting a secret
Setting a secret registers the secret with the runner to ensure it is masked in logs.
```js
core.exportSecret('myPassword', mypass);
core.setSecret('myPassword');
```
#### PATH Manipulation
@ -102,4 +104,37 @@ const result = await core.group('Do something async', async () => {
const response = await doSomeHTTPRequest()
return response
})
```
#### Action state
You can use this library to save state and get state for sharing information between a given wrapper action:
**action.yml**
```yaml
name: 'Wrapper action sample'
inputs:
name:
default: 'GitHub'
runs:
using: 'node12'
main: 'main.js'
post: 'cleanup.js'
```
In action's `main.js`:
```js
const core = require('@actions/core');
core.saveState("pidToKill", 12345);
```
In action's `cleanup.js`:
```js
const core = require('@actions/core');
var pid = core.getState("pidToKill");
process.kill(pid);
```