Skip to content

Commit

Permalink
Don't fail when no credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljguarino committed Sep 23, 2024
1 parent 9a2c48e commit 5e69777
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ async function setupConfig(vsn) {
if (!conf) {
if (!core.getInput("email")) {
if (!process.env.PLURAL_CONSOLE_TOKEN) {
core.setFailed("if you want to use `plural cd` commands you need to set $PLURAL_CONSOLE_TOKEN and $PLURAL_CONSOLE_URL")
core.info("if you want to use `plural cd` commands you need to set $PLURAL_CONSOLE_TOKEN and $PLURAL_CONSOLE_URL")
}
return
}
Expand Down Expand Up @@ -76,7 +76,7 @@ async function setupTempConfig() {
const token = await core.getIDToken()
const email = core.getInput('email')
if (!email) {
core.setFailed("`email` is required when authenticating with oidc")
core.info("`email` is required when authenticating with oidc")
return
}
const claims = jwt_decode(token)
Expand Down

0 comments on commit 5e69777

Please sign in to comment.