Skip to content

Commit 1980d9d

Browse files
committed
test multiline environment variable
1 parent 42f76e4 commit 1980d9d

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/build.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ jobs:
3838
run: |
3939
version=`dasel -r toml -f gradle/libs.versions.toml versions.processor`
4040
echo "BUILD_VERSION=${version#projectVersion=}" >> $GITHUB_ENV
41+
echo "MULTILINE=line 1\nline 2\nline 3\n" >> $GITHUB_ENV
4142
cat $GITHUB_ENV
4243
4344
- name: actor

build.gradle.kts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ tasks.named("build") {
2424
dependsOn ("jacocoLogAggregatedCoverage")
2525
}
2626

27+
fun properties(key: String): Provider<String> = providers.gradleProperty(key)
28+
fun environment(key: String): Provider<String> = providers.environmentVariable(key)
29+
30+
val multiline = environment("MULTiLINE")
31+
print("multiline ($multiline)")
32+
2733
extra["publishUser"] = buildProperty("PUBLISH_USER")
2834
extra["publishKey"] = buildProperty("PUBLISH_KEY")
2935
val publishUser: String by extra

0 commit comments

Comments
 (0)