Kaynağa Gözat

Fix updating the repository for arch

GPG will refuse to overwrite already existing signatures, so remove
them before signing.

Signed-off-by: Dorian Stoll <dorian.stoll@tmsp.io>
Dorian Stoll 5 yıl önce
ebeveyn
işleme
255b82b08a
2 değiştirilmiş dosya ile 12 ekleme ve 0 silme
  1. 6 0
      .github/workflows/arch.yml
  2. 6 0
      .github/workflows/arch_lts.yml

+ 6 - 0
.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

+ 6 - 0
.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