Skip to content

Commit

Permalink
Return undefined if GHES_TOKEN is not set when running on GHES
Browse files Browse the repository at this point in the history
  • Loading branch information
HenrikPoulsen committed Jan 11, 2022
1 parent 0b992d8 commit 248abfd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/install-python.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ import {IS_WINDOWS, IS_LINUX, isGhes} from './utils';
const TOKEN = core.getInput('token');
const GHES_TOKEN = core.getInput('ghes_token');
const AUTH = isGhes()
? `token ${GHES_TOKEN}`
? GHES_TOKEN
? `token ${GHES_TOKEN}`
: undefined
: TOKEN
? `token ${TOKEN}`
: undefined;
Expand Down

0 comments on commit 248abfd

Please sign in to comment.