From f5f460d438ba1f4a5a879a823e4d4b9eff0fd7c2 Mon Sep 17 00:00:00 2001 From: CrazyMax Date: Sun, 22 Nov 2020 18:56:47 +0100 Subject: [PATCH] fix: Set GORELEASER_CURRENT_TAG (#255) --- dist/index.js | 1 + src/main.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/dist/index.js b/dist/index.js index d6f3a1ad..5d952732 100644 --- a/dist/index.js +++ b/dist/index.js @@ -378,6 +378,7 @@ function run() { } } core.info('🏃 Running GoReleaser...'); + process.env.GORELEASER_CURRENT_TAG = tag; yield exec.exec(`${goreleaser} ${args}${snapshot}`); } catch (error) { diff --git a/src/main.ts b/src/main.ts index 194039cf..9b073909 100644 --- a/src/main.ts +++ b/src/main.ts @@ -44,6 +44,7 @@ async function run(): Promise { } core.info('🏃 Running GoReleaser...'); + process.env.GORELEASER_CURRENT_TAG = tag; await exec.exec(`${goreleaser} ${args}${snapshot}`); } catch (error) { core.setFailed(error.message);