From 09d89387993fb1ee89ceddb2a17031a641fce774 Mon Sep 17 00:00:00 2001 From: "Yang, Bo" Date: Sun, 10 Jul 2022 20:23:39 +0000 Subject: [PATCH] Support matrix.sbt-args --- .github/workflows/scala.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/scala.yml b/.github/workflows/scala.yml index 4f329a14..2026c628 100644 --- a/.github/workflows/scala.yml +++ b/.github/workflows/scala.yml @@ -51,9 +51,9 @@ jobs: ${{ runner.os }}-${{matrix.scala}}-${{ hashFiles('**/*.sbt') }} ${{ runner.os }}-${{matrix.scala}}- - name: Run tests - run: sbt ++${{ matrix.scala }} test + run: sbt ${{matrix.sbt-args}} ++${{ matrix.scala }} test - name: Publish to Maven Central Repository env: GITHUB_PERSONAL_ACCESS_TOKEN: ${{secrets.PERSONAL_ACCESS_TOKEN}} if: ${{ env.GITHUB_PERSONAL_ACCESS_TOKEN != '' }} - 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 + 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