1
0
Fork 0
mirror of https://code.forgejo.org/actions/setup-go synced 2025-06-08 19:48:21 +02:00

Pass the token input through on GHES (#277)

This commit is contained in:
Dmitry Shibanov 2022-11-02 12:21:18 +01:00 committed by GitHub
parent c4a742cab1
commit 27b43e1b0d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 19 additions and 4 deletions

View file

@ -28,7 +28,7 @@ export async function run() {
if (versionSpec) {
let token = core.getInput('token');
let auth = !token || isGhes() ? undefined : `token ${token}`;
let auth = !token ? undefined : `token ${token}`;
const checkLatest = core.getBooleanInput('check-latest');
const installDir = await installer.getGo(