diff --git a/dist/index.js b/dist/index.js index 688616a..2b34e4a 100644 --- a/dist/index.js +++ b/dist/index.js @@ -132,7 +132,7 @@ function run() { core.startGroup(`Docker image version`); core.info(version.version || ''); core.endGroup(); - core.setOutput('version', version || ''); + core.setOutput('version', version.version || ''); const tags = meta.tags(); core.startGroup(`Docker tags`); for (let tag of tags) { diff --git a/src/main.ts b/src/main.ts index 7b413fe..692ef21 100644 --- a/src/main.ts +++ b/src/main.ts @@ -31,7 +31,7 @@ async function run() { core.startGroup(`Docker image version`); core.info(version.version || ''); core.endGroup(); - core.setOutput('version', version || ''); + core.setOutput('version', version.version || ''); const tags: Array = meta.tags(); core.startGroup(`Docker tags`);