diff --git a/README.md b/README.md index 4e92893..3c57d4b 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,14 @@ You will need a GH PAT with the following scopes (at a minimum): - `repo` Full control of private repositories +## Special Cases + +Setting the `majorVersion` to `all` will support the renovate `all non-major dependencies` updates. + +Setting the `majorVersion` to `projen` will support the `projen` native `update-projen-main` workflows. + +In these special cases, the `--library` option is ignored and the `--maxAgeDays` parameter comes into play. + ## TODO - detect and address case where PR is not up-to-date with base branch. diff --git a/script.js b/script.js index 76730fe..a760575 100644 --- a/script.js +++ b/script.js @@ -259,17 +259,17 @@ export async function script( ); // Find the update-main workflow, + const workflowPath = `.github/workflows/${workflowName}.yml`; const workflows = await octokit.paginate( 'GET /repos/{owner}/{repo}/actions/workflows', { ...baseParams, per_page: 100 }, (response) => response.data ); - const renovateWf = workflows.find( - (w) => w.path === `.github/workflows/${workflowName}.yml` - ); + const renovateWf = workflows.find((w) => w.path === workflowPath); // octokit.log.info(JSON.stringify(renovateWf)); if (renovateWf === undefined) { - octokit.log.error('Missing upgrade-main / renovate.yml workflow!'); + octokit.log.error(`Missing workflow at ${workflowPath}`); + return; } const workflow_id = renovateWf?.id ?? 0; // Should never be 0, but...