File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -2,10 +2,13 @@ name: ci
2
2
3
3
on :
4
4
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*
7
9
pull_request :
8
- branches : [master]
10
+ branches :
11
+ - master
9
12
10
13
concurrency :
11
14
group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ const argv = yargs(hideBin(process.argv))
54
54
description : "Analysis to be performed" ,
55
55
} )
56
56
. check ( ( { ref, on } ) => {
57
- if ( ! / v [ 0 - 9 ] + .[ 0 - 9 ] + .[ 0 - 9 ] + ( - ( a l p h a | b e t a | r c ) \. [ 0 - 9 ] + ) * $ / . test ( ref ) ) {
57
+ if ( ! / ^ v [ 0 - 9 ] + .[ 0 - 9 ] + .[ 0 - 9 ] + ( - ( a l p h a | b e t a | r c ) \. [ 0 - 9 ] + ) * $ / . test ( ref ) ) {
58
58
throw new Error ( `Invalid Git reference '${ ref } '` ) ;
59
59
}
60
60
if ( on . length === 0 ) {
You can’t perform that action at this time.
0 commit comments