Skip to content

Commit

Permalink
Merge pull request #40 from andrewkatz/fix-output
Browse files Browse the repository at this point in the history
Remove newline characters from output
  • Loading branch information
WyriHaximus authored Oct 24, 2022
2 parents fc6bea1 + 2b05e0f commit ad051e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ exec(`git for-each-ref --sort=-creatordate --count 1 --format="%(refname:short)"

console.log('\x1b[32m%s\x1b[0m', `Found tag: ${tag}`);
console.log('\x1b[32m%s\x1b[0m', `Found timestamp: ${timestamp}`);
fs.appendFileSync(process.env.GITHUB_OUTPUT, `tag=${tag}\r\n`);
fs.appendFileSync(process.env.GITHUB_OUTPUT, `timestamp=${timestamp}\r\n`);
fs.appendFileSync(process.env.GITHUB_OUTPUT, `tag=${tag}\n`);
fs.appendFileSync(process.env.GITHUB_OUTPUT, `timestamp=${timestamp}\n`);
process.exit(0);
});
});

0 comments on commit ad051e0

Please sign in to comment.