mirror of
https://github.com/actions/setup-python.git
synced 2025-04-24 15:32:13 +00:00
Pass thetoken
input through on GHES
This commit is contained in:
parent
813f9b1556
commit
10cd86d9dc
3 changed files with 59035 additions and 58081 deletions
52553
dist/cache-save/index.js
vendored
52553
dist/cache-save/index.js
vendored
File diff suppressed because one or more lines are too long
64559
dist/setup/index.js
vendored
64559
dist/setup/index.js
vendored
File diff suppressed because one or more lines are too long
|
@ -3,10 +3,10 @@ import * as core from '@actions/core';
|
|||
import * as tc from '@actions/tool-cache';
|
||||
import * as exec from '@actions/exec';
|
||||
import {ExecOptions} from '@actions/exec/lib/interfaces';
|
||||
import {IS_WINDOWS, IS_LINUX, isGhes} from './utils';
|
||||
import {IS_WINDOWS, IS_LINUX} from './utils';
|
||||
|
||||
const TOKEN = core.getInput('token');
|
||||
const AUTH = !TOKEN || isGhes() ? undefined : `token ${TOKEN}`;
|
||||
const AUTH = !TOKEN ? undefined : `token ${TOKEN}`;
|
||||
const MANIFEST_REPO_OWNER = 'actions';
|
||||
const MANIFEST_REPO_NAME = 'python-versions';
|
||||
const MANIFEST_REPO_BRANCH = 'main';
|
||||
|
|
Loading…
Add table
Reference in a new issue