Skip to content

Commit 52a49dd

Browse files
committed
Use core#exportVariable
1 parent 56eb9a6 commit 52a49dd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

action-runner/dist/index.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

action-runner/src/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export async function onMessage(ws: WebSocket, msg: any) {
7373
} else if (json.type == "set-env") {
7474
const name: string = json.name
7575
const value: string = json.value
76-
await fs.appendFile(process.env.GITHUB_ENV!, `${name}=${value}\n`)
76+
core.exportVariable(name, value)
7777
ws.send("{}")
7878
} else if (json.type == "write-file") {
7979
const pth = path.resolve(workspace, json.path)

0 commit comments

Comments
 (0)