From bd59d09a9bb03e9663b0d4c3f883b6f9137efd54 Mon Sep 17 00:00:00 2001 From: Yi Hu Date: Tue, 11 Jul 2023 15:04:18 -0400 Subject: [PATCH] Do not prompt yN in gpg sign (#27455) --- .github/workflows/build_release_candidate.yml | 2 +- release/src/main/scripts/build_release_candidate.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build_release_candidate.yml b/.github/workflows/build_release_candidate.yml index 012ab93dca1a..462b3e2bdade 100644 --- a/.github/workflows/build_release_candidate.yml +++ b/.github/workflows/build_release_candidate.yml @@ -126,7 +126,7 @@ jobs: rm -r "$RELEASE_DIR" echo "----Signing Source Release ${SOURCE_RELEASE_ZIP}-----" - gpg --local-user "${{steps.import_gpg.outputs.name}}" --armor --detach-sig "${SOURCE_RELEASE_ZIP}" + gpg --local-user "${{steps.import_gpg.outputs.name}}" --armor --batch --yes --detach-sig "${SOURCE_RELEASE_ZIP}" echo "----Creating Hash Value for ${SOURCE_RELEASE_ZIP}----" sha512sum ${SOURCE_RELEASE_ZIP} > ${SOURCE_RELEASE_ZIP}.sha512 diff --git a/release/src/main/scripts/build_release_candidate.sh b/release/src/main/scripts/build_release_candidate.sh index 90678f636301..057a38833adc 100755 --- a/release/src/main/scripts/build_release_candidate.sh +++ b/release/src/main/scripts/build_release_candidate.sh @@ -214,7 +214,7 @@ if [[ $confirmation = "y" ]]; then rm -r "$RELEASE_DIR" echo "----Signing Source Release ${SOURCE_RELEASE_ZIP}-----" - gpg --local-user ${SIGNING_KEY} --armor --detach-sig "${SOURCE_RELEASE_ZIP}" + gpg --local-user ${SIGNING_KEY} --armor --batch --yes --detach-sig "${SOURCE_RELEASE_ZIP}" echo "----Creating Hash Value for ${SOURCE_RELEASE_ZIP}----" sha512sum ${SOURCE_RELEASE_ZIP} > ${SOURCE_RELEASE_ZIP}.sha512 @@ -281,7 +281,7 @@ if [[ $confirmation = "y" ]]; then for artifact in *.whl; do echo "------------------Signing ${artifact} wheel-------------------" - gpg --local-user "${SIGNING_KEY}" --armor --detach-sig "${artifact}" + gpg --local-user "${SIGNING_KEY}" --armor --batch --yes --detach-sig "${artifact}" done cd ..