From 82592de7f1686bf42224c935c1dbe03f77a76053 Mon Sep 17 00:00:00 2001 From: Daniel Spiewak Date: Mon, 6 Sep 2021 16:57:23 -0600 Subject: [PATCH] Use other bash trickery --- .github/workflows/ci.yml | 2 +- build.sbt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4fedebf..db4bf3b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -111,6 +111,6 @@ jobs: - name: Strip passphrase from signing key env: PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }} - run: echo "$PGP_PASSPHRASE\n\n\n" | gpg --command-fd 0 --pinentry-mode loopback --change-passphrase 5EBC14B0F6C55083 + run: (echo "$PGP_PASSPHRASE"; echo; echo) | gpg --command-fd 0 --pinentry-mode loopback --change-passphrase 5EBC14B0F6C55083 - run: sbt ++${{ matrix.scala }} release diff --git a/build.sbt b/build.sbt index e828b7a..a443f50 100644 --- a/build.sbt +++ b/build.sbt @@ -88,7 +88,7 @@ ThisBuild / githubWorkflowPublishPreamble := Seq( env = Map("PGP_PASSPHRASE" -> "${{ secrets.PGP_PASSPHRASE }}")), WorkflowStep.Run( - List("echo \"$PGP_PASSPHRASE\\n\\n\\n\" | gpg --command-fd 0 --pinentry-mode loopback --change-passphrase 5EBC14B0F6C55083"), + List("(echo \"$PGP_PASSPHRASE\"; echo; echo) | gpg --command-fd 0 --pinentry-mode loopback --change-passphrase 5EBC14B0F6C55083"), name = Some("Strip passphrase from signing key"), env = Map("PGP_PASSPHRASE" -> "${{ secrets.PGP_PASSPHRASE }}")))