Skip to content

Commit

Permalink
fix: set REPO_COOKER_GITHUB_TOKEN only if not exists
Browse files Browse the repository at this point in the history
  • Loading branch information
henri-hulski committed Jul 15, 2023
1 parent 1682899 commit 136faf6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion repo-cooker/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { Cooker } from 'repo-cooker'

process.env.REPO_COOKER_GITHUB_TOKEN = process.env.GH_TOKEN
if (!process.env.REPO_COOKER_GITHUB_TOKEN && process.env.GH_TOKEN) {
process.env.REPO_COOKER_GITHUB_TOKEN = process.env.GH_TOKEN
}

export const cooker = Cooker(process.argv, {
devtools: null,
Expand Down

0 comments on commit 136faf6

Please sign in to comment.