mirror of
https://github.com/webfactory/ssh-agent.git
synced 2025-04-24 23:12:13 +00:00
Make vars available as action outputs
This commit is contained in:
parent
d4b9b8ff72
commit
639e5e2bb8
1 changed files with 2 additions and 0 deletions
2
index.js
2
index.js
|
@ -37,6 +37,8 @@ try {
|
|||
if (matches && matches.length > 0) {
|
||||
// This will also set process.env accordingly, so changes take effect for this script
|
||||
core.exportVariable(matches[1], matches[2])
|
||||
// Set the output variable for the action
|
||||
core.setOutput(matches[1], matches[2])
|
||||
console.log(`${matches[1]}=${matches[2]}`);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue