Skip to content

Commit 23e0ed5

Browse files
authored
fix: do not override GORELEASER_CURRENT_TAG (#370)
* fix: do not override GORELEASER_CURRENT_TAG Signed-off-by: Carlos A Becker <[email protected]> * fix: build Signed-off-by: Carlos A Becker <[email protected]> Signed-off-by: Carlos A Becker <[email protected]>
1 parent b508e2e commit 23e0ed5

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

dist/index.js

+1-1
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

+1-7
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,7 @@ async function run(): Promise<void> {
5656
}
5757
}
5858

59-
await exec.exec(`${bin} ${inputs.args}${snapshot}`, undefined, {
60-
env: Object.assign({}, process.env, {
61-
GORELEASER_CURRENT_TAG: process.env.GORELEASER_CURRENT_TAG || tag || ''
62-
}) as {
63-
[key: string]: string;
64-
}
65-
});
59+
await exec.exec(`${bin} ${inputs.args}${snapshot}`);
6660

6761
if (typeof yamlfile === 'string') {
6862
const artifacts = await goreleaser.getArtifacts(await goreleaser.getDistPath(yamlfile));

0 commit comments

Comments
 (0)