Skip to content

Commit 6525369

Browse files
committed
fix: simplify the workflow
1 parent 8cedbec commit 6525369

File tree

1 file changed

+2
-17
lines changed

1 file changed

+2
-17
lines changed

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

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -22,26 +22,11 @@ jobs:
2222

2323
- uses: actions/checkout@v4
2424
with:
25-
ref: ${{ github.ref }}
25+
ref: main
2626
fetch-depth: "0"
2727
token: ${{ steps.app-token.outputs.token }}
2828

29-
- name: Extract version from tag
30-
uses: actions-ecosystem/action-regex-match@d50fd2e7a37d0e617aea3d7ada663bd56862b9cc
31-
id: version-match
32-
with:
33-
text: ${{ github.ref }}
34-
regex: 'refs/tags/mongosh@([0-9]+\.[0-9]+\.[0-9]+.*)'
35-
36-
- uses: actions/github-script@v7
37-
if: steps.version-match.outputs.group1 == ''
38-
with:
39-
script: |
40-
core.setFailed('Could not extract version from tag: ${{ github.ref }}');
41-
4229
- name: Merge release tag into main
4330
run: |
44-
git checkout -b package-release/v${{ steps.version-match.outputs.group1 }} ${{ github.ref }}
45-
git checkout main
46-
git merge package-release/v${{ steps.version-match.outputs.group1 }}
31+
git merge ${{ github.ref }} -m "chore(release): merge changes from ${{ github.ref_name }}"
4732
git push origin main

0 commit comments

Comments
 (0)