From 3ad3fc3d88497620c65b7c32e791159f20c42750 Mon Sep 17 00:00:00 2001 From: Bruce Adams Date: Sat, 15 Aug 2020 16:24:11 -0400 Subject: [PATCH] `tag_name` output in README --- README.md | 3 ++- dist/index.js | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 01b2f63..1a04b7a 100644 --- a/README.md +++ b/README.md @@ -15,8 +15,9 @@ This Action requires that the environment variable `GITHUB_TOKEN` be set correct For more information on these outputs, see the [API Documentation](https://developer.github.com/v3/repos/releases/#response-4) for an example of what these outputs look like - `id`: The release ID -- `html_url`: The URL users can navigate to in order to view the release. i.e. `https://github.com/octocat/Hello-World/releases/v1.0.0` +- `html_url`: The URL users can navigate to in order to view the release. For example `https://github.com/octocat/Hello-World/releases/v1.0.0` - `upload_url`: The URL for uploading assets to the release, which could be used by GitHub Actions for additional uses, for example the [`@actions/upload-release-asset`](https://www.github.com/actions/upload-release-asset) GitHub Action +- `tag_name`: The git tag associated with the release. For example: `v1.1.0` ### Example workflow diff --git a/dist/index.js b/dist/index.js index d22681e..fd7aa13 100644 --- a/dist/index.js +++ b/dist/index.js @@ -24848,6 +24848,7 @@ async function run() { core.setOutput("id", releaseId.toString()); core.setOutput("html_url", htmlUrl); core.setOutput("upload_url", uploadUrl); + core.setOutput("tag_name", tag); } catch (error) { console.log(error); core.setFailed(error.message);