mirror of
https://github.com/tenrok/axios.git
synced 2026-06-20 20:00:40 +03:00
chore(ci): fix release-it arg; (#6032)
This commit is contained in:
@@ -35,9 +35,9 @@ jobs:
|
|||||||
- name: Prepare release
|
- name: Prepare release
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
TYPE_ARG: ${{ fromJSON('{"auto":"", "patch":"--patch", "minor":"--minor", "major":"--major"}')[github.event.inputs.type] }}
|
TYPE_ARG: ${{ fromJSON('{"auto":"", "patch":"patch", "minor":"minor", "major":"major"}')[github.event.inputs.type] }}
|
||||||
BETA_ARG: ${{ github.event.inputs.beta == 'true' && '--preRelease=beta' || '' }}
|
BETA_ARG: ${{ github.event.inputs.beta == 'true' && '--preRelease=beta' || '' }}
|
||||||
run: npm run release -- --ci --verbose --no-git.push --no-git.commit --no-git.tag --no-github $TYPE_ARG $BETA_ARG $DRY_ARG
|
run: npm run release -- $TYPE_ARG --ci --verbose --no-git.push --no-git.commit --no-git.tag --no-github $BETA_ARG $DRY_ARG
|
||||||
- name: Show git status
|
- name: Show git status
|
||||||
if: failure()
|
if: failure()
|
||||||
run: git status && git diff
|
run: git status && git diff
|
||||||
|
|||||||
+6
-2
@@ -201,8 +201,12 @@ const renderPRsList = async (tag, template, {comments_threshold= 5, awesome_thre
|
|||||||
|
|
||||||
pr.messages = [];
|
pr.messages = [];
|
||||||
|
|
||||||
if (body && (match = /```+changelog(.+)?```/gms.exec(body)) && match[1]) {
|
if (body) {
|
||||||
pr.messages.push(match[1]);
|
const reg = /```+changelog\n*(.+?)?\n*```/gms;
|
||||||
|
|
||||||
|
while((match = reg.exec(body))) {
|
||||||
|
match[1] && pr.messages.push(match[1]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user