Skip to content

Commit 2fa6b3f

Browse files
committed
update
1 parent df59c9f commit 2fa6b3f

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ jobs:
148148
if [ -n "$VERSION_INPUT" ]; then
149149
RELEASE_VERSION="$VERSION_INPUT"
150150
else
151-
RELEASE_VERSION=$(grep -E 'version\s*=' gradle.properties | sed -E 's/.*\"(.+)-SNAPSHOT\".*/\1/')
151+
RELEASE_VERSION=$(grep -E 'version=' gradle.properties | sed -E 's/version=//')
152152
fi
153153
echo "RELEASE_VERSION=$RELEASE_VERSION" >> $GITHUB_ENV
154154
@@ -206,7 +206,7 @@ jobs:
206206
uses: softprops/action-gh-release@v1
207207
with:
208208
tag_name: "v${{ env.RELEASE_VERSION }}"
209-
release_name: "${{ env.RELEASE_VERSION }}"
209+
name: "${{ env.RELEASE_VERSION }}"
210210
body_path: CHANGELOG.md # assumes changelog contains latest release notes at top
211211
env:
212212
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -215,7 +215,7 @@ jobs:
215215
if: ${{ github.event_name != 'workflow_dispatch' }}
216216
run: |
217217
# Bump minor version (for example) and append -SNAPSHOT for continued development
218-
NEXT_VERSION=$(echo $RELEASE_VERSION | awk -F. '{$NF += 1; OFS="."; print $0}') # increment last segment
218+
NEXT_VERSION=$(echo $RELEASE_VERSION | awk -F. -v OFS="." '{$NF += 1; print $0}') # increment last segment
219219
NEXT_VERSION="$NEXT_VERSION-SNAPSHOT"
220220
sed -i -E "s/$RELEASE_VERSION/$NEXT_VERSION/" gradle.properties || true
221221
git config user.name "github-actions"

gradle.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44
# Blocked on https://github.com/nbaztec/coveralls-jacoco-gradle-plugin/issues/66
55
org.gradle.configuration-cache=false
66

7+
# No spaces on the following line, needed by release.tml
78
version=4.1.3-SNAPSHOT
89

0 commit comments

Comments
 (0)