File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,14 @@ You will need a GH PAT with the following scopes (at a minimum):
2727
2828- ` repo ` Full control of private repositories
2929
30+ ## Special Cases
31+
32+ Setting the ` majorVersion ` to ` all ` will support the renovate ` all non-major dependencies ` updates.
33+
34+ Setting the ` majorVersion ` to ` projen ` will support the ` projen ` native ` update-projen-main ` workflows.
35+
36+ In these special cases, the ` --library ` option is ignored and the ` --maxAgeDays ` parameter comes into play.
37+
3038## TODO
3139
3240- detect and address case where PR is not up-to-date with base branch.
Original file line number Diff line number Diff line change @@ -259,17 +259,17 @@ export async function script(
259259 ) ;
260260
261261 // Find the update-main workflow,
262+ const workflowPath = `.github/workflows/${ workflowName } .yml` ;
262263 const workflows = await octokit . paginate (
263264 'GET /repos/{owner}/{repo}/actions/workflows' ,
264265 { ...baseParams , per_page : 100 } ,
265266 ( response ) => response . data
266267 ) ;
267- const renovateWf = workflows . find (
268- ( w ) => w . path === `.github/workflows/${ workflowName } .yml`
269- ) ;
268+ const renovateWf = workflows . find ( ( w ) => w . path === workflowPath ) ;
270269 // octokit.log.info(JSON.stringify(renovateWf));
271270 if ( renovateWf === undefined ) {
272- octokit . log . error ( 'Missing upgrade-main / renovate.yml workflow!' ) ;
271+ octokit . log . error ( `Missing workflow at ${ workflowPath } ` ) ;
272+ return ;
273273 }
274274 const workflow_id = renovateWf ?. id ?? 0 ; // Should never be 0, but...
275275
You can’t perform that action at this time.
0 commit comments