From 3dfb9e37002f4903da641e12608f4e553ee880e2 Mon Sep 17 00:00:00 2001 From: Seth Levine Date: Wed, 13 Apr 2022 11:39:56 -0400 Subject: [PATCH] Refactor GPG_TTY ENV Var In Integration Test YML --- .github/workflows/integrationTest.yml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/integrationTest.yml b/.github/workflows/integrationTest.yml index 55c01468f96..f7a9dc1d74f 100644 --- a/.github/workflows/integrationTest.yml +++ b/.github/workflows/integrationTest.yml @@ -13,6 +13,7 @@ env: GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }} PASSPHRASE: ${{ secrets.PASSPHRASE }} GPG_KEY_NAME: ${{ secrets.GPG_KEY_NAME }} + GPG_TTY: $(tty) on: push: @@ -78,9 +79,8 @@ jobs: - name: Sign packages if: steps.cached_binaries.outputs.cache-hit != 'true' run: | - export GPG_TTY=$(tty) echo "${GPG_PRIVATE_KEY}" | gpg --batch --import - - for f in $(find build/bin/); do if [ ! -d $f ]; then echo "Signing file $f" && echo "${PASSPHRASE}" | gpg --detach-sign --passphrase-fd 0 --batch --default-key "${GPG_KEY_NAME}" $f ; fi ; done + for f in $(find build/bin/); do if [ ! -d $f ]; then echo "Signing file $f" && echo "${PASSPHRASE}" | gpg --detach-sign --passphrase-fd 0 --batch --default-key "${GPG_KEY_NAME}" $f ; fi ; done - name: Upload to s3 if: steps.cached_binaries.outputs.cache-hit != 'true' @@ -259,9 +259,8 @@ jobs: - name: Sign packages if: steps.cached_sig.outputs.cache-hit != 'true' run: | - export GPG_TTY=$(tty) echo "${GPG_PRIVATE_KEY}" | gpg --batch --import - - for f in $(find packages/); do if [ ! -d $f ]; then echo "Signing file $f" && echo "${PASSPHRASE}" | gpg --detach-sign --passphrase-fd 0 --batch --default-key "${GPG_KEY_NAME}" $f ; fi ; done + for f in $(find packages/); do if [ ! -d $f ]; then echo "Signing file $f" && echo "${PASSPHRASE}" | gpg --detach-sign --passphrase-fd 0 --batch --default-key "${GPG_KEY_NAME}" $f ; fi ; done - name: Upload to s3 if: steps.cached_sig.outputs.cache-hit != 'true'