Skip to content

Commit

Permalink
feat(deps): use projen token for deps workflow if defined (#846)
Browse files Browse the repository at this point in the history
If `projenUpgradeSecret` is defined, use it for the normal dependency upgrade workflow and not just for the projen upgrade workflow. This is useful if dep changes require workflow changes
  • Loading branch information
Elad Ben-Israel committed Jun 1, 2021
1 parent a382204 commit 1181275
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/__tests__/__snapshots__/integ.test.ts.snap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions src/node-project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -637,6 +637,8 @@ export class NodeProject extends Project {
? DependenciesUpgradeMechanism.dependabot()
: DependenciesUpgradeMechanism.githubWorkflow({
workflowOptions: options.workflowContainerImage ? {
// if projen secret is defined, use it (otherwise default to GITHUB_TOKEN).
secret: options.projenUpgradeSecret,
container: {
image: options.workflowContainerImage,
},
Expand Down

0 comments on commit 1181275

Please sign in to comment.