Skip to content

Commit b8d22ab

Browse files
authored
Merge pull request #106 from maxlapides/main
fix: remove trailing newline on root path
2 parents ec74504 + 55380e8 commit b8d22ab

File tree

3 files changed

+26
-26
lines changed

3 files changed

+26
-26
lines changed

dist/index.js

+21-21
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import * as core from '@actions/core';
22
import * as exec from '@actions/exec';
33
import * as github from '@actions/github';
4-
import * as tc from '@actions/tool-cache';
54
import * as io from '@actions/io';
5+
import * as tc from '@actions/tool-cache';
6+
import { existsSync, readFileSync } from 'fs';
67
import os from 'os';
78
import { join } from 'path';
8-
import { existsSync, readFileSync } from 'fs';
9-
import { YAMLMap, parseDocument } from 'yaml';
109
import { satisfies } from 'semver';
10+
import { YAMLMap, parseDocument } from 'yaml';
1111

1212
type Platform = 'windows' | 'macos' | 'linux';
1313
type Architecture = 'arm' | 'x64';
@@ -58,7 +58,7 @@ async function getVersion(token: string): Promise<string> {
5858
await exec.exec('git', ['rev-parse', '--show-toplevel'], {
5959
listeners: {
6060
stdout: (data: Buffer) => {
61-
root += data.toString();
61+
root += data.toString().trim();
6262
},
6363
},
6464
});

0 commit comments

Comments
 (0)