From 3aada9646d7fbb046727b8a4cbdf7b6cd1875dfe Mon Sep 17 00:00:00 2001 From: Cees-Jan Kiewiet Date: Tue, 25 Oct 2022 07:45:00 +0200 Subject: [PATCH] Drop \r from fallback --- main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.js b/main.js index 923ba1f..f347af1 100644 --- a/main.js +++ b/main.js @@ -13,8 +13,8 @@ exec(`git for-each-ref --sort=-creatordate --count 1 --format="%(refname:short)" console.log('\x1b[33m%s\x1b[0m', 'Falling back to default tag'); console.log('\x1b[32m%s\x1b[0m', `Found tag: ${process.env.INPUT_FALLBACK}`); console.log('\x1b[32m%s\x1b[0m', `Found timestamp: ${timestamp}`); - fs.appendFileSync(process.env.GITHUB_OUTPUT, `tag=${process.env.INPUT_FALLBACK}\r\n`); - fs.appendFileSync(process.env.GITHUB_OUTPUT, `timestamp=${timestamp}\r\n`); + fs.appendFileSync(process.env.GITHUB_OUTPUT, `tag=${process.env.INPUT_FALLBACK}\n`); + fs.appendFileSync(process.env.GITHUB_OUTPUT, `timestamp=${timestamp}\n`); process.exit(0); }