Skip to content

Commit

Permalink
fix: use github token as input instead of env
Browse files Browse the repository at this point in the history
  • Loading branch information
vanlooverenkoen committed Nov 29, 2023
1 parent 4c189e1 commit f0d6ee3
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 @@ -18,12 +18,12 @@ if (process.env.PACKAGEJSON_DIR) {
process.chdir(process.env.GITHUB_WORKSPACE)
}

//Workspace
// Workspace
const workspace = process.env.GITHUB_WORKSPACE
console.log(`Current workspace: ${workspace}`)

// Github Token
const githubToken = process.env.GITHUB_TOKEN
const githubToken = procore.getInput('github-token')
if (githubToken == null || githubToken == "") {
core.setFailed('GITHUB_TOKEN not found.')
return
Expand Down

0 comments on commit f0d6ee3

Please sign in to comment.