mirror of https://github.com/actions/toolkit
removing not implemented function from docs
parent
f66f5629b3
commit
4ebc9007c0
|
@ -18,9 +18,9 @@ const myInput = core.getInput('inputName', { required: true });
|
||||||
core.setOutput('outputKey', 'outputVal');
|
core.setOutput('outputKey', 'outputVal');
|
||||||
```
|
```
|
||||||
|
|
||||||
#### Exporting variables/secrets
|
#### Exporting variables
|
||||||
|
|
||||||
You can also export variables and secrets for future steps. Variables get set in the environment automatically, while secrets must be scoped into the environment from a workflow using `${{ secrets.FOO }}`. Secrets will also be masked from the logs:
|
You can also export variables for future steps. Variables get set in the environment.
|
||||||
|
|
||||||
```js
|
```js
|
||||||
const core = require('@actions/core');
|
const core = require('@actions/core');
|
||||||
|
@ -28,7 +28,6 @@ const core = require('@actions/core');
|
||||||
// Do stuff
|
// Do stuff
|
||||||
|
|
||||||
core.exportVariable('envVar', 'Val');
|
core.exportVariable('envVar', 'Val');
|
||||||
core.exportSecret('secretVar', variableWithSecretValue);
|
|
||||||
```
|
```
|
||||||
|
|
||||||
#### PATH Manipulation
|
#### PATH Manipulation
|
||||||
|
|
Loading…
Reference in New Issue