mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2026-01-05 09:42:55 +08:00
removing not implemented function from docs
This commit is contained in:
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…
x
Reference in New Issue
Block a user