Skip to content

Commit 74b79b8

Browse files
committed
fix set-output warning
1 parent ee8e7c2 commit 74b79b8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ function run() {
9595
output = output.replace(/\n/g, '%0A');
9696
output = output.replace(/\r/g, '%0D');
9797
core.info(output);
98-
const setoutputCommand = `echo "::set-output name=diff::${output}"`;
98+
const setoutputCommand = `echo "diff=${output}" >> $GITHUB_OUTPUT`;
9999
exec.exec(setoutputCommand).catch(error => {
100100
core.setFailed(error.message);
101101
});

src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ async function run(): Promise<void> {
6565

6666
core.info(output)
6767

68-
const setoutputCommand = `echo "::set-output name=diff::${output}"`
68+
const setoutputCommand = `echo "diff=${output}" >> $GITHUB_OUTPUT`
6969
exec.exec(setoutputCommand).catch(error => {
7070
core.setFailed(error.message)
7171
})

0 commit comments

Comments
 (0)