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);