From 2525e590509f2129b101270d21df43c8ac613c9e Mon Sep 17 00:00:00 2001 From: "Yang, Bo" Date: Thu, 26 Jan 2023 18:25:36 -0800 Subject: [PATCH] Pass ${{matrix.sbt-args}} to sbt commands --- .github/workflows/scala.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/scala.yml b/.github/workflows/scala.yml index 6b004dd6..eb2e4db3 100644 --- a/.github/workflows/scala.yml +++ b/.github/workflows/scala.yml @@ -6,7 +6,6 @@ on: - 'update/**' tags: - 'v*' - pull_request: jobs: @@ -41,9 +40,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 != '' && github.event_name != 'pull_request' }} - 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