Skip to content

Commit

Permalink
fix: Update deprecated output method (#8)
Browse files Browse the repository at this point in the history
* fix: Update deprecated output method

https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/

* Automated build of 438fc00

---------

Co-authored-by: GitHub Action <[email protected]>
  • Loading branch information
sheck and actions-user authored Mar 7, 2023
1 parent 7149837 commit 7642fd6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13937,7 +13937,7 @@ exports.easyExec = async function easyExec (commandWithArgs) {
}

exports.setOutput = function setOutput (key, value) {
process.stdout.write(`::set-output name=${key}::${value}` + os.EOL)
exec.exec(`echo "${key}=${value}" >> $GITHUB_OUTPUT`)
}


Expand Down
2 changes: 1 addition & 1 deletion src/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@ exports.easyExec = async function easyExec (commandWithArgs) {
}

exports.setOutput = function setOutput (key, value) {
process.stdout.write(`::set-output name=${key}::${value}` + os.EOL)
exec.exec(`echo "${key}=${value}" >> $GITHUB_OUTPUT`)
}

0 comments on commit 7642fd6

Please sign in to comment.