Skip to content

Commit

Permalink
fix: fetchLatestRelease
Browse files Browse the repository at this point in the history
  • Loading branch information
tsi committed Jun 26, 2024
1 parent 861f614 commit 831959a
Showing 1 changed file with 19 additions and 21 deletions.
40 changes: 19 additions & 21 deletions .github/actions/fetch-latest-release/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 831959a

Please sign in to comment.