Skip to content

Commit 2602a2d

Browse files
committed
major: (another try) first release (hopefully)
1 parent 1eeb4a8 commit 2602a2d

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

.github/workflows/release.yaml

+4-14
Original file line numberDiff line numberDiff line change
@@ -25,28 +25,18 @@ jobs:
2525
needs: test
2626
runs-on: ubuntu-latest
2727
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'
4032

4133
- name: Bump version and push tag
4234
if: steps.version.outputs.type != 'skip'
4335
uses: anothrNick/[email protected]
4436
env:
4537
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46-
DEFAULT_BUMP: ${{ steps.vars.outputs.version_type }}
4738

4839
- name: Create a Release
49-
if: steps.version.outputs.type != 'skip'
5040
uses: elgohr/Github-Release-Action@v5
5141
env:
5242
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}

0 commit comments

Comments
 (0)