Add support for adding a token on GHES to prevent rate limiting

This commit is contained in:
Henrik Poulsen 2022-01-10 10:47:30 +01:00
parent 9a115684c9
commit 0b992d8a43
3 changed files with 15 additions and 2 deletions

7
dist/setup/index.js vendored
View file

@ -52264,7 +52264,12 @@ const tc = __importStar(__webpack_require__(533));
const exec = __importStar(__webpack_require__(986));
const utils_1 = __webpack_require__(163);
const TOKEN = core.getInput('token');
const AUTH = !TOKEN || utils_1.isGhes() ? undefined : `token ${TOKEN}`;
const GHES_TOKEN = core.getInput('ghes_token');
const AUTH = utils_1.isGhes()
? `token ${GHES_TOKEN}`
: TOKEN
? `token ${TOKEN}`
: undefined;
const MANIFEST_REPO_OWNER = 'actions';
const MANIFEST_REPO_NAME = 'python-versions';
const MANIFEST_REPO_BRANCH = 'main';