Skip to content

Commit c616efe

Browse files
committed
chore(ci): fix workflow tags regex
1 parent 4284c89 commit c616efe

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,13 @@ name: ci
22

33
on:
44
push:
5-
branches: [master]
6-
tags: ['^v(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)-?.*$']
5+
branches:
6+
- master
7+
tags:
8+
- v*
79
pull_request:
8-
branches: [master]
10+
branches:
11+
- master
912

1013
concurrency:
1114
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}

scripts/markdown.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ const argv = yargs(hideBin(process.argv))
5454
description: "Analysis to be performed",
5555
})
5656
.check(({ ref, on }) => {
57-
if (!/v[0-9]+.[0-9]+.[0-9]+(-(alpha|beta|rc)\.[0-9]+)*$/.test(ref)) {
57+
if (!/^v[0-9]+.[0-9]+.[0-9]+(-(alpha|beta|rc)\.[0-9]+)*$/.test(ref)) {
5858
throw new Error(`Invalid Git reference '${ref}'`);
5959
}
6060
if (on.length === 0) {

0 commit comments

Comments
 (0)