fix: use @action/github (#390)

* fix: use @action/github

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>

* Update README.md

Co-authored-by: CrazyMax <github@crazymax.dev>

* Update action.yml

Co-authored-by: CrazyMax <github@crazymax.dev>

---------

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
Co-authored-by: CrazyMax <crazy-max@users.noreply.github.com>
Co-authored-by: CrazyMax <github@crazymax.dev>
This commit is contained in:
Carlos Alexandro Becker
2023-01-27 23:22:07 -03:00
committed by GitHub
parent b1a238106b
commit 9754a253a8
16 changed files with 834 additions and 29 deletions
+2 -2
View File
@@ -7,8 +7,8 @@ import * as github from './github';
import * as core from '@actions/core';
import * as tc from '@actions/tool-cache';
export async function install(distribution: string, version: string): Promise<string> {
const release: github.GitHubRelease | null = await github.getRelease(distribution, version);
export async function install(distribution: string, version: string, githubToken: string): Promise<string> {
const release: github.Release | null = await github.getRelease(distribution, version, githubToken);
if (!release) {
throw new Error(`Cannot find GoReleaser ${version} release`);
}