fix: do not override GORELEASER_CURRENT_TAG (#370)
* fix: do not override GORELEASER_CURRENT_TAG Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com> * fix: build Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com> Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
This commit is contained in:
parent
b508e2e3ef
commit
23e0ed5919
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -56,13 +56,7 @@ async function run(): Promise<void> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
await exec.exec(`${bin} ${inputs.args}${snapshot}`, undefined, {
|
await exec.exec(`${bin} ${inputs.args}${snapshot}`);
|
||||||
env: Object.assign({}, process.env, {
|
|
||||||
GORELEASER_CURRENT_TAG: process.env.GORELEASER_CURRENT_TAG || tag || ''
|
|
||||||
}) as {
|
|
||||||
[key: string]: string;
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
if (typeof yamlfile === 'string') {
|
if (typeof yamlfile === 'string') {
|
||||||
const artifacts = await goreleaser.getArtifacts(await goreleaser.getDistPath(yamlfile));
|
const artifacts = await goreleaser.getArtifacts(await goreleaser.getDistPath(yamlfile));
|
||||||
|
|
Loading…
Reference in New Issue