fix: Set GORELEASER_CURRENT_TAG (#259)

Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax 2020-11-30 01:00:15 +01:00 committed by GitHub
parent 50de962f84
commit 09ce14113d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

1
dist/index.js generated vendored
View File

@ -378,6 +378,7 @@ function run() {
}
}
core.info('🏃 Running GoReleaser...');
process.env.GORELEASER_CURRENT_TAG = tag;
yield exec.exec(`${goreleaser} ${args}${snapshot}`);
}
catch (error) {

View File

@ -44,6 +44,7 @@ async function run(): Promise<void> {
}
core.info('🏃 Running GoReleaser...');
process.env.GORELEASER_CURRENT_TAG = tag;
await exec.exec(`${goreleaser} ${args}${snapshot}`);
} catch (error) {
core.setFailed(error.message);