From d1b1e897564b3e5c4918c0cf91db309c7621afd7 Mon Sep 17 00:00:00 2001 From: Sergio Date: Wed, 25 Sep 2024 14:13:03 +0200 Subject: [PATCH] Fix GPG input --- .github/workflows/o2-full-deps.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/o2-full-deps.yml b/.github/workflows/o2-full-deps.yml index 7477face..85cb895a 100644 --- a/.github/workflows/o2-full-deps.yml +++ b/.github/workflows/o2-full-deps.yml @@ -106,18 +106,20 @@ jobs: ALIBUILD_TAG: v1.17.11 ALIBUILD_DISTRO: ${{ matrix.ubuntu_codename }} DEBIAN_FRONTEND: noninteractive - steps: - name: Install prerequisites run: | apt update apt install -y vim git devscripts build-essential lintian debhelper dh-python python3-all python3-setuptools python3-setuptools-scm - cat <<\EOF | gpg --import - ${{ secrets.LAUNCHPAD_PPA_GPG_KEY }} - EOF + export GPG_TTY=$(tty) + mkdir -p ~/.gnupg + chmod 700 ~/.gnupg + echo "pinentry-mode loopback" >> ~/.gnupg/gpg.conf + echo -n "${{ secrets.LAUNCHPAD_PPA_GPG_KEY }}" | gpg --no-tty --batch --import - name: Build a DEB for Ubuntu and push it to the PPA run: | + export GPG_TTY=$(tty) set -x git clone -b "$ALIBUILD_TAG" https://github.com/alisw/alibuild cd alibuild @@ -128,5 +130,5 @@ jobs: -- Giulio Eulisse $(date -R -u) EOF - debuild --no-lintian -k48F330BAFFA564EF2383E2B472E9262B5C0D9DE5 -S + debuild --no-lintian -kA3A177D7C6BAD5C044ACAC10F56D273E83B84A47 -S -p"gpg --no-tty" dput ppa:alisw/ppa "../python3-alibuild_${ALIBUILD_TAG#v}+${ALIBUILD_DISTRO}_source.changes"