Skip to content

Commit

Permalink
Use other bash trickery
Browse files Browse the repository at this point in the history
  • Loading branch information
djspiewak committed Sep 6, 2021
1 parent a35c70d commit 82592de
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}")))

Expand Down

0 comments on commit 82592de

Please sign in to comment.