Skip to content

Commit 2525e59

Browse files
authored
Pass ${{matrix.sbt-args}} to sbt commands
1 parent 43ef7e9 commit 2525e59

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/scala.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ on:
66
- 'update/**'
77
tags:
88
- 'v*'
9-
109
pull_request:
1110

1211
jobs:
@@ -41,9 +40,9 @@ jobs:
4140
${{ runner.os }}-${{matrix.scala}}-${{ hashFiles('**/*.sbt') }}
4241
${{ runner.os }}-${{matrix.scala}}-
4342
- name: Run tests
44-
run: sbt ++${{ matrix.scala }} test
43+
run: sbt ${{matrix.sbt-args}} ++${{ matrix.scala }} test
4544
- name: Publish to Maven Central Repository
4645
env:
4746
GITHUB_PERSONAL_ACCESS_TOKEN: ${{secrets.PERSONAL_ACCESS_TOKEN}}
4847
if: ${{ env.GITHUB_PERSONAL_ACCESS_TOKEN != '' && github.event_name != 'pull_request' }}
49-
run: sbt ++${{ matrix.scala }} "set every Seq(sonatypeSessionName := \"${{github.workflow}} ${{github.run_id}}-${{github.run_number}}-${{github.run_attempt}}-$$ ${{ matrix.scala }}\", publishTo := sonatypePublishToBundle.value)" publishSigned sonatypeBundleRelease
48+
run: sbt ${{matrix.sbt-args}} ++${{ matrix.scala }} "set every Seq(sonatypeSessionName := \"${{github.workflow}} ${{github.run_id}}-${{github.run_number}}-${{github.run_attempt}}-$$ ${{ matrix.scala }}\", publishTo := sonatypePublishToBundle.value)" publishSigned sonatypeBundleRelease

0 commit comments

Comments
 (0)