diff --git a/.github/actions/fetch-latest-release/index.js b/.github/actions/fetch-latest-release/index.js index 10a84c15..4f746153 100644 --- a/.github/actions/fetch-latest-release/index.js +++ b/.github/actions/fetch-latest-release/index.js @@ -39,27 +39,25 @@ async function fetchLatestRelease() { core.setFailed(error); } - const { data } = latestRelease; - - core.setOutput('url', data.url); - core.setOutput('assets_url', data.assets_url); - core.setOutput('upload_url', data.upload_url); - core.setOutput('html_url', data.html_url); - core.setOutput('id', data.id.toString()); - core.setOutput('node_id', data.node_id); - core.setOutput('tag_name', data.tag_name); - core.setOutput('target_commitish', data.target_commitish); - core.setOutput('name', data.name); - core.setOutput('body', data.body); - core.setOutput('draft', data.draft); - core.setOutput('prerelease', data.prerelease); - core.setOutput('author_id', data.author.id.toString()); - core.setOutput('author_node_id', data.author.node_id); - core.setOutput('author_url', data.author.url); - core.setOutput('author_login', data.author.login); - core.setOutput('author_html_url', data.author.html_url); - core.setOutput('author_type', data.author.type); - core.setOutput('author_site_admin', data.author.site_admin); + core.setOutput('url', latestRelease.url); + core.setOutput('assets_url', latestRelease.assets_url); + core.setOutput('upload_url', latestRelease.upload_url); + core.setOutput('html_url', latestRelease.html_url); + core.setOutput('id', latestRelease.id.toString()); + core.setOutput('node_id', latestRelease.node_id); + core.setOutput('tag_name', latestRelease.tag_name); + core.setOutput('target_commitish', latestRelease.target_commitish); + core.setOutput('name', latestRelease.name); + core.setOutput('body', latestRelease.body); + core.setOutput('draft', latestRelease.draft); + core.setOutput('prerelease', latestRelease.prerelease); + core.setOutput('author_id', latestRelease.author.id.toString()); + core.setOutput('author_node_id', latestRelease.author.node_id); + core.setOutput('author_url', latestRelease.author.url); + core.setOutput('author_login', latestRelease.author.login); + core.setOutput('author_html_url', latestRelease.author.html_url); + core.setOutput('author_type', latestRelease.author.type); + core.setOutput('author_site_admin', latestRelease.author.site_admin); } try {