fix: Set GORELEASER_CURRENT_TAG (#259)
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
parent
50de962f84
commit
09ce14113d
|
@ -378,6 +378,7 @@ function run() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
core.info('🏃 Running GoReleaser...');
|
core.info('🏃 Running GoReleaser...');
|
||||||
|
process.env.GORELEASER_CURRENT_TAG = tag;
|
||||||
yield exec.exec(`${goreleaser} ${args}${snapshot}`);
|
yield exec.exec(`${goreleaser} ${args}${snapshot}`);
|
||||||
}
|
}
|
||||||
catch (error) {
|
catch (error) {
|
||||||
|
|
|
@ -44,6 +44,7 @@ async function run(): Promise<void> {
|
||||||
}
|
}
|
||||||
|
|
||||||
core.info('🏃 Running GoReleaser...');
|
core.info('🏃 Running GoReleaser...');
|
||||||
|
process.env.GORELEASER_CURRENT_TAG = tag;
|
||||||
await exec.exec(`${goreleaser} ${args}${snapshot}`);
|
await exec.exec(`${goreleaser} ${args}${snapshot}`);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
core.setFailed(error.message);
|
core.setFailed(error.message);
|
||||||
|
|
Loading…
Reference in New Issue