Skip to content

Commit

Permalink
update cics-for-zowe-client and fix manifest automation
Browse files Browse the repository at this point in the history
Signed-off-by: MarkAckert <[email protected]>
  • Loading branch information
MarkAckert committed May 1, 2024
1 parent 04f57ce commit 0d1665a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
19 changes: 11 additions & 8 deletions .github/scripts/manifest_verification/check_sources.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion .github/scripts/manifest_verification/package-lock.json

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

2 changes: 1 addition & 1 deletion manifest.json.template
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@
}, {
"componentGroup": "IBM&reg CICS&reg Plug-in for Zowe CLI",
"entries": [{
"repository": "zowe-cli-cics-plugin",
"repository": "cics-for-zowe-client",
"tag": "v5.0.5",
"destinations": ["Zowe CLI Package"]
}]
Expand Down

0 comments on commit 0d1665a

Please sign in to comment.