Skip to content

Commit

Permalink
fix version replacement in release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
rlnt committed Sep 1, 2024
1 parent 7f1fb4d commit c0a3481
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,11 @@ jobs:
env:
VERSION: ${{ steps.version.outputs.VERSION }}
run: |
if grep -q '^version\s*=\s*"$VERSION"' gradle.properties; then
if grep -q '^version\s*=\s*"$VERSION"' build.gradle.kts; then
echo "version is already set"
else
echo "version is outdated, adjusting build.gradle.kts"
sed -i 's/^version\s*=.*$/version = "$VERSION"/' build.gradle.kts
sed -i "s/^version\s*=.*$/version = $VERSION/g" build.gradle.kts
git diff build.gradle.kts
fi
Expand Down

0 comments on commit c0a3481

Please sign in to comment.