diff --git a/package-lock.json b/package-lock.json index 0f980b0..8a84803 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@stoe/action-reporting-cli", - "version": "3.6.3", + "version": "3.7.0-alpha.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@stoe/action-reporting-cli", - "version": "3.6.3", + "version": "3.7.0-alpha.1", "license": "MIT", "dependencies": { "@octokit/core": "^6.1.4", diff --git a/package.json b/package.json index 551b038..debe8bc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@stoe/action-reporting-cli", - "version": "3.6.3", + "version": "3.7.0-alpha.1", "type": "module", "description": "CLI to report on GitHub Actions", "keywords": [ @@ -13,14 +13,17 @@ "email": "stefan@github.com", "url": "https://github.com/stoe" }, - "repository": "github:stoe/action-reporting-cli", + "repository": { + "type": "git", + "url": "git+https://github.com/stoe/action-reporting-cli.git" + }, "license": "MIT", "engines": { "node": ">=20", "npm": ">=10" }, "bin": { - "action-reporting-cli": "./index.js" + "action-reporting-cli": "index.js" }, "exports": { ".": "./utils/reporting.js", diff --git a/utils/reporting.js b/utils/reporting.js index 82900f1..6179f5c 100644 --- a/utils/reporting.js +++ b/utils/reporting.js @@ -1020,12 +1020,14 @@ ${dim('(this could take a while...)')}`) } if (getRunsOn) { - const v = runsOn.map(ro => { - if (ro && ro.indexOf('matrix') > -1) { - ro = `\`${ro}\`` - } - return ro - }) + const v = runsOn + ? runsOn.map(ro => { + if (ro && ro.indexOf('matrix') > -1) { + ro = `\`${ro}\`` + } + return ro + }) + : [] mdStr += ` | ${v && v.length > 0 ? v.join(', ') : ''}` }