File tree Expand file tree Collapse file tree 1 file changed +2
-17
lines changed
Expand file tree Collapse file tree 1 file changed +2
-17
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments