mirror of
https://code.forgejo.org/actions/setup-python
synced 2025-06-09 12:52:20 +02:00
Pass the token
input through on GHES (#427)
* Pass the`token` input through on GHES * Update the description for `token` * Fix dist files * Update package-lock.json * Update README * Fix indent level in YAML snippet * secret names can't start with GITHUB_
This commit is contained in:
parent
813f9b1556
commit
7e4abae443
5 changed files with 14 additions and 7 deletions
|
@ -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
Add a link
Reference in a new issue