From 0d1665a71903694f13535038f1247fe610d00ffa Mon Sep 17 00:00:00 2001 From: MarkAckert Date: Wed, 1 May 2024 10:26:33 -0400 Subject: [PATCH] update cics-for-zowe-client and fix manifest automation Signed-off-by: MarkAckert --- .../manifest_verification/check_sources.js | 19 +++++++++++-------- .../manifest_verification/package-lock.json | 2 +- manifest.json.template | 2 +- 3 files changed, 13 insertions(+), 10 deletions(-) diff --git a/.github/scripts/manifest_verification/check_sources.js b/.github/scripts/manifest_verification/check_sources.js index 31293432f8..8514553108 100644 --- a/.github/scripts/manifest_verification/check_sources.js +++ b/.github/scripts/manifest_verification/check_sources.js @@ -81,15 +81,18 @@ async function main() { } // If not a commit, check repo tags - const tags = await octokit.rest.repos.listTags({ - owner: 'zowe', - repo: repo, - }).then((resp) => { - if (resp.status < 400) { - return resp.data; + // requires paginate API. + + const tags = await octokit.paginate( + "GET /repos/{owner}/{repo}/tags", + { + owner: 'zowe', + repo: repo, } - return []; - }) + ).then((resp) => { + // resp is the aggregated data from paginate.. [ { name: 'tag-a', ..other-fields.. }, {}, {}, ...] + return resp; + }); const knownTag = tags.find((item) => item.name === tag); if (knownTag != null && knownTag.name.trim().length > 0) { diff --git a/.github/scripts/manifest_verification/package-lock.json b/.github/scripts/manifest_verification/package-lock.json index 784fe7954d..31f555dc36 100644 --- a/.github/scripts/manifest_verification/package-lock.json +++ b/.github/scripts/manifest_verification/package-lock.json @@ -10,7 +10,7 @@ "license": "EPL-2.0", "dependencies": { "@actions/core": "1.10.1", - "@actions/github": "^6.0.0", + "@actions/github": "6.0.0", "fs-extra": "11.2.0" } }, diff --git a/manifest.json.template b/manifest.json.template index 2bc6abe9ac..c403d24a20 100644 --- a/manifest.json.template +++ b/manifest.json.template @@ -223,7 +223,7 @@ }, { "componentGroup": "IBM® CICS® Plug-in for Zowe CLI", "entries": [{ - "repository": "zowe-cli-cics-plugin", + "repository": "cics-for-zowe-client", "tag": "v5.0.5", "destinations": ["Zowe CLI Package"] }]