fix: add a couple of debug lines

This commit is contained in:
Federico Grandi
2020-12-22 20:31:18 +01:00
parent d84d80e417
commit 5c9f1f7cef
2 changed files with 3 additions and 1 deletions

File diff suppressed because one or more lines are too long

View File

@@ -170,11 +170,13 @@ async function checkInputs() {
// #region GITHUB_TOKEN
let token = process.env.GITHUB_TOKEN
if (token) {
debug('Using token from GITHUB_TOKEN env variable.')
warning(
"The GITHUB_TOKEN env variable is deprecated and will not be supported in the next major release. Use the 'token' input, " +
"which defaults to 'secrets.GITHUB_TOKEN'."
)
} else {
debug('Using token from token input.')
token = getInput('token')
}
// #endregion