Skip to content

Commit

Permalink
ci: potentially fix release
Browse files Browse the repository at this point in the history
  • Loading branch information
rxchard committed Dec 11, 2024
1 parent 02351c2 commit fe68638
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches: [ master ]
tags:
- 'v*'
- '*'

jobs:

Expand Down Expand Up @@ -37,7 +37,7 @@ jobs:
path: build/libs/SilkSpawners_v2.jar

release:
if: github.ref == 'refs/tags/*'
if: startsWith(github.ref, 'refs/tags/')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -54,7 +54,7 @@ jobs:
run: |
echo "changes=" >> $GITHUB_OUTPUT
if [ ${{ github.ref }} == "refs/heads/master" ] ; then
echo "changes=`git log --oneline $(git tag -l --format='%(objectname)' | tail -n1)..HEAD --pretty=format:%s | grep -E '(feat)|(fix)'`" \
echo "changes=`git log --oneline $(git tag -l --format='%(objectname)' | tail -n2 | head -n1)..HEAD --pretty=format:%s | grep -E '(^feat)|(^fix)'`" \
>> $GITHUB_OUTPUT
fi
Expand Down

0 comments on commit fe68638

Please sign in to comment.