Skip to content

Commit

Permalink
Merge pull request #20 from kryptt/master
Browse files Browse the repository at this point in the history
Fix missing quotes in the expected output.
  • Loading branch information
djspiewak authored Sep 19, 2020
2 parents 536e673 + 67bca34 commit 8da4c1f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/scala/sbtghactions/GenerativePlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ ${indent(rendered.mkString("\n"), 1)}"""
val runsOn = if (job.runsOnExtraLabels.isEmpty)
s"$${{ matrix.os }}"
else
job.runsOnExtraLabels.mkString(s"[ $${{ matrix.os }}, ", ", ", " ]" )
job.runsOnExtraLabels.mkString(s"""[ "$${{ matrix.os }}", """, ", ", " ]" )

val body = s"""name: ${wrap(job.name)}${renderedNeeds}${renderedCond}
strategy:
Expand Down
2 changes: 1 addition & 1 deletion src/test/scala/sbtghactions/GenerativePluginSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ class GenerativePluginSpec extends Specification {
os: [ubuntu-latest]
scala: [2.13.1]
java: [[email protected]]
runs-on: [ ${{ matrix.os }}, runner-label, runner-group ]
runs-on: [ "${{ matrix.os }}", runner-label, runner-group ]
steps:
- run: echo hello"""
}
Expand Down

0 comments on commit 8da4c1f

Please sign in to comment.