Skip to content

Commit

Permalink
fix: 🐛 set secret
Browse files Browse the repository at this point in the history
  • Loading branch information
bubkoo committed Sep 25, 2020
1 parent 655ebe5 commit ef42837
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,9 @@ export namespace Action {
installationId,
})

core.info(`Token: ${token}`)

const secretName = core.getInput('SECRET_NAME')
if (secretName) {
await Util.createOrUpdateRepoSecret(octokit, secretName, token)
await Util.createOrUpdateRepoSecret(token, secretName, token)
}

core.setSecret(token)
Expand Down

0 comments on commit ef42837

Please sign in to comment.