From 255b82b08ae979c4310b0dc23251f0a894235f20 Mon Sep 17 00:00:00 2001 From: Dorian Stoll Date: Thu, 30 Jan 2020 18:12:55 +0100 Subject: [PATCH] Fix updating the repository for arch GPG will refuse to overwrite already existing signatures, so remove them before signing. Signed-off-by: Dorian Stoll --- .github/workflows/arch.yml | 6 ++++++ .github/workflows/arch_lts.yml | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/.github/workflows/arch.yml b/.github/workflows/arch.yml index 55bf977dd..557efe7d6 100644 --- a/.github/workflows/arch.yml +++ b/.github/workflows/arch.yml @@ -108,6 +108,12 @@ jobs: # Sign the updated repository echo "$GPG_KEY" | base64 -d | gpg --import --no-tty --batch --yes + if [ -f 'linux-surface.db.sig' ]; then + rm linux-surface.db.sig + rm linux-surface.db.tar.gz.sig + rm linux-surface.files.sig + rm linux-surface.files.tar.gz.sig + fi gpg --detach-sign --batch --no-tty --no-armor -u $GPG_KEY_ID linux-surface.db gpg --detach-sign --batch --no-tty --no-armor -u $GPG_KEY_ID linux-surface.db.tar.gz gpg --detach-sign --batch --no-tty --no-armor -u $GPG_KEY_ID linux-surface.files diff --git a/.github/workflows/arch_lts.yml b/.github/workflows/arch_lts.yml index b822259dd..e3925a4b4 100644 --- a/.github/workflows/arch_lts.yml +++ b/.github/workflows/arch_lts.yml @@ -108,6 +108,12 @@ jobs: # Sign the updated repository echo "$GPG_KEY" | base64 -d | gpg --import --no-tty --batch --yes + if [ -f 'linux-surface.db.sig' ]; then + rm linux-surface.db.sig + rm linux-surface.db.tar.gz.sig + rm linux-surface.files.sig + rm linux-surface.files.tar.gz.sig + fi gpg --detach-sign --batch --no-tty --no-armor -u $GPG_KEY_ID linux-surface.db gpg --detach-sign --batch --no-tty --no-armor -u $GPG_KEY_ID linux-surface.db.tar.gz gpg --detach-sign --batch --no-tty --no-armor -u $GPG_KEY_ID linux-surface.files