diff --git a/lib/main.js b/lib/main.js index 633e4622..6060d060 100644 --- a/lib/main.js +++ b/lib/main.js @@ -23,7 +23,9 @@ function run() { const ref = github.context.ref; const tagPath = "refs/tags/"; if (ref && ref.startsWith(tagPath)) { - core.exportVariable("GITHUB_TAG_NAME", ref.substr(tagPath.length, ref.length)); + const tag = ref.substr(tagPath.length, ref.length); + core.exportVariable("GITHUB_TAG_NAME", tag); + core.setOutput('tag', tag); } } catch (error) {