From 47f3b7fc892cf8334fd31c627ede388eaf69d575 Mon Sep 17 00:00:00 2001 From: Sofia Lima Date: Mon, 10 Apr 2023 23:44:15 +0000 Subject: [PATCH] fix AUR workflow (#10) --- .github/workflows/release.yml | 5 ++--- scripts/{ => ci}/aur_bump.sh | 0 scripts/ci/install_makepkg.sh | 13 +++++++++++++ 3 files changed, 15 insertions(+), 3 deletions(-) rename scripts/{ => ci}/aur_bump.sh (100%) create mode 100755 scripts/ci/install_makepkg.sh diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index aa939a2..dbc4901 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,13 +30,12 @@ jobs: - name: Update AUR package if: ${{ matrix.os == 'ubuntu-latest' }} run: | - sudo apt install makepkg - echo $SSH_KEY > ~/.ssh/aur echo $SSH_PUB_KEY > ~/.ssh/aur.pub export GIT_SSH_COMMAND="ssh -i ~/.ssh/aur" - ./scripts/aur_bump.sh + ./scripts/ci/install_makepkg.sh >/dev/null 2>&1 + ./scripts/ci/aur_bump.sh env: SSH_KEY: ${{ secrets.AUR_SSH_KEY }} SSH_PUB_KEY: ${{ secrets.AUR_SSH_PUB_KEY }} diff --git a/scripts/aur_bump.sh b/scripts/ci/aur_bump.sh similarity index 100% rename from scripts/aur_bump.sh rename to scripts/ci/aur_bump.sh diff --git a/scripts/ci/install_makepkg.sh b/scripts/ci/install_makepkg.sh new file mode 100755 index 0000000..4ac83cf --- /dev/null +++ b/scripts/ci/install_makepkg.sh @@ -0,0 +1,13 @@ +#!/bin/sh + +set -e + +for i in \ + "makepkg_6.0.2-3_amd64.deb" \ + "libalpm13_13.0.2-3_amd64.deb" \ + "pacman-package-manager_6.0.2-3_amd64.deb"; do + wget -O/tmp/$i https://fr.archive.ubuntu.com/ubuntu/pool/universe/p/pacman-package-manager/$i + dpkg -i /tmp/$i || true +done + +apt -f install -q