diff --git a/action.yml b/action.yml index 9aa5db2c5..b9bdb9475 100644 --- a/action.yml +++ b/action.yml @@ -23,6 +23,9 @@ inputs: required: false env: 'GITHUB_TOKEN': 'As provided by Github Actions' +outputs: + url: + description: 'URL to the Release HTML Page' runs: using: 'node12' main: 'lib/main.js' diff --git a/lib/main.js b/lib/main.js index ddc454b7d..3d1b5f875 100644 --- a/lib/main.js +++ b/lib/main.js @@ -29,6 +29,7 @@ function run() { })); } console.log(`🎉 Release ready at ${rel.html_url}`); + core_1.setOutput('url', rel.html_url); } catch (error) { core_1.setFailed(error.message); diff --git a/src/main.ts b/src/main.ts index 42f9762db..94cbd398a 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,6 +1,6 @@ import { paths, parseConfig, isTag } from "./util"; import { release, upload, GitHubReleaser } from "./github"; -import { setFailed } from "@actions/core"; +import { setFailed, setOutput } from "@actions/core"; import { GitHub } from "@actions/github"; import { env } from "process"; @@ -18,6 +18,7 @@ async function run() { }); } console.log(`🎉 Release ready at ${rel.html_url}`); + setOutput('url', rel.html_url); } catch (error) { setFailed(error.message); }