Skip to content

Commit

Permalink
chore: add dist
Browse files Browse the repository at this point in the history
  • Loading branch information
xrkffgg committed Nov 17, 2022
1 parent 2f4d8a9 commit f67aa70
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16304,6 +16304,8 @@ function main() {
const branches = (0, actions_util_1.dealStringToArr)(branch);
const tag = core.getInput('tag');
const tags = (0, actions_util_1.dealStringToArr)(tag);
const conchTag = core.getInput('conch-tag');
const conchTags = (0, actions_util_1.dealStringToArr)(conchTag);
const changelogs = core.getInput('changelogs');
const draft = core.getInput('draft') || false;
const prerelease = core.getInput('prerelease') || false;
Expand All @@ -16319,13 +16321,15 @@ function main() {
error("[Actions] The input 'triger' not match acionts 'on'");
return;
}
let conch = 'conch';
info(`tags: ${JSON.stringify(tags)}`);
if (tags && tags.length) {
for (let i = 0; i < tags.length; i++) {
let t = tags[i];
t = t.replace('*', '');
if ((version + '').startsWith(t)) {
branch = branches[i] || '';
conch = conchTags[i] || 'conch';
break;
}
}
Expand Down Expand Up @@ -16426,9 +16430,10 @@ function main() {
const antdMsg = core.getInput('antd-conch-msg');
if (antdMsg) {
const result = yield (0, util_1.execOutput)(`npm view antd dist-tags --json`);
const { conch } = JSON.parse(result);
if (conch) {
log += `\n\n ${antdMsg}${conch}`;
const distTags = JSON.parse(result);
const conchTag = distTags[conch];
if (conchTag) {
log += `\n\n ${antdMsg}${conchTag}`;
}
}
const dingdingTokenArr = dingdingToken.split(' ');
Expand Down

0 comments on commit f67aa70

Please sign in to comment.