Skip to content

Commit a11d64e

Browse files
committed
fix: use create event and conditions for merging release tag
1 parent 38539bd commit a11d64e

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

.github/workflows/merge-release-tag.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,14 @@ name: Merge Release Tag
22

33
on:
44
create:
5-
tags:
6-
- 'mongosh@[0-9]+.[0-9]+.[0-9]+'
7-
- 'mongosh@[0-9]+.[0-9]+.[0-9]-rc.[0-9]+'
8-
push:
9-
tags:
10-
- 'mongosh@[0-9]+.[0-9]+.[0-9]+'
11-
- 'mongosh@[0-9]+.[0-9]+.[0-9]-rc.[0-9]+'
125
workflow_dispatch:
136

147
permissions:
158
contents: none # We use the github app to checkout and push changes
169

1710
jobs:
1811
merge-release-tag:
12+
if: ${{ github.ref =~ '^refs/tags/mongosh@[0-9]+\.[0-9]+\.[0-9]+(-rc\.[0-9]+)?$' }}
1913
runs-on: ubuntu-latest
2014

2115
steps:

0 commit comments

Comments
 (0)