fix: current tag not taken into account (#329)

Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax
2022-02-28 15:24:18 +01:00
committed by GitHub
parent c127c9be61
commit b953231f81
3 changed files with 24 additions and 2 deletions
Generated Vendored
+1 -1
View File
@@ -477,7 +477,7 @@ function run() {
}
yield exec.exec(`${bin} ${inputs.args}${snapshot}`, undefined, {
env: Object.assign({}, process.env, {
GORELEASER_CURRENT_TAG: tag || process.env.GORELEASER_CURRENT_TAG || ''
GORELEASER_CURRENT_TAG: process.env.GORELEASER_CURRENT_TAG || tag || ''
})
});
if (typeof yamlfile === 'string') {