properties shorthand function for accessing gradle.properties in a cleaner way (#92)

This commit is contained in:
Jakub Chrzanowski
2021-02-25 10:41:19 +01:00
committed by GitHub
parent b812e459d4
commit 507b055937
5 changed files with 21 additions and 31 deletions

View File

@@ -114,7 +114,7 @@ jobs:
run: |
PROPERTIES="$(./gradlew properties --console=plain -q)"
VERSION="$(echo "$PROPERTIES" | grep "^version:" | cut -f2- -d ' ')"
NAME="$(echo "$PROPERTIES" | grep "^pluginName_:" | cut -f2- -d ' ')"
NAME="$(echo "$PROPERTIES" | grep "^pluginName:" | cut -f2- -d ' ')"
CHANGELOG="$(./gradlew getChangelog --unreleased --no-header --console=plain -q)"
CHANGELOG="${CHANGELOG//'%'/'%25'}"
CHANGELOG="${CHANGELOG//$'\n'/'%0A'}"