File tree 1 file changed +4
-14
lines changed
1 file changed +4
-14
lines changed Original file line number Diff line number Diff line change @@ -25,28 +25,18 @@ jobs:
25
25
needs : test
26
26
runs-on : ubuntu-latest
27
27
steps :
28
- - name : Check Commit Message and Set Version
29
- id : version
30
- run : |
31
- if [[ "${{ github.event.head_commit.message }}" == major:* ]]; then
32
- echo "type=major" >> $GITHUB_OUTPUT
33
- elif [[ "${{ github.event.head_commit.message }}" == minor:* ]]; then
34
- echo "type=minor" >> $GITHUB_OUTPUT
35
- elif [[ "${{ github.event.head_commit.message }}" == patch:* ]]; then
36
- echo "type=patch" >> $GITHUB_OUTPUT
37
- else
38
- echo "type=skip" >> $GITHUB_OUTPUT
39
- fi
28
+ - uses : actions/checkout@v4
29
+ with :
30
+ ref : ${{ github.event.pull_request.merge_commit_sha }}
31
+ fetch-depth : ' 0'
40
32
41
33
- name : Bump version and push tag
42
34
if : steps.version.outputs.type != 'skip'
43
35
uses :
anothrNick/[email protected]
44
36
env :
45
37
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
46
- DEFAULT_BUMP : ${{ steps.vars.outputs.version_type }}
47
38
48
39
- name : Create a Release
49
- if : steps.version.outputs.type != 'skip'
50
40
uses : elgohr/Github-Release-Action@v5
51
41
env :
52
42
GITHUB_TOKEN : ${{ secrets.RELEASE_TOKEN }}
You can’t perform that action at this time.
0 commit comments