Skip to content
This repository was archived by the owner on Dec 17, 2022. It is now read-only.

Commit b0aed72

Browse files
committed
update for set-output / set-state deprecation
1 parent c85c06f commit b0aed72

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

main.mjs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import crypto from 'crypto';
2+
import fs from 'fs';
23
import https from 'https';
34

45
function b64(s) {
@@ -68,8 +69,8 @@ async function createToken(app, pkey, owner) {
6869

6970
console.log('token acquired!');
7071
console.log(`::add-mask::${token}`);
71-
console.log(`::set-output name=token::${token}`);
72-
console.log(`::save-state name=token::${token}`);
72+
fs.appendFileSync(process.env.GITHUB_OUTPUT, `token=${token}\n`);
73+
fs.appendFileSync(process.env.GITHUB_STATE, `token=${token}\n`);
7374
}
7475

7576
async function delToken(token) {

0 commit comments

Comments
 (0)