mirror of
https://github.com/goreleaser/goreleaser-action
synced 2026-07-09 06:37:31 +00:00
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:
committed by
GitHub
parent
b1a238106b
commit
9754a253a8
+2
-2
@@ -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`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user