fix AUR workflow (#10)

This commit is contained in:
Sofia Lima 2023-04-10 23:44:15 +00:00 committed by GitHub
parent 838a3c78dd
commit 47f3b7fc89
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 3 deletions

View file

@ -30,13 +30,12 @@ jobs:
- name: Update AUR package - name: Update AUR package
if: ${{ matrix.os == 'ubuntu-latest' }} if: ${{ matrix.os == 'ubuntu-latest' }}
run: | run: |
sudo apt install makepkg
echo $SSH_KEY > ~/.ssh/aur echo $SSH_KEY > ~/.ssh/aur
echo $SSH_PUB_KEY > ~/.ssh/aur.pub echo $SSH_PUB_KEY > ~/.ssh/aur.pub
export GIT_SSH_COMMAND="ssh -i ~/.ssh/aur" 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: env:
SSH_KEY: ${{ secrets.AUR_SSH_KEY }} SSH_KEY: ${{ secrets.AUR_SSH_KEY }}
SSH_PUB_KEY: ${{ secrets.AUR_SSH_PUB_KEY }} SSH_PUB_KEY: ${{ secrets.AUR_SSH_PUB_KEY }}

13
scripts/ci/install_makepkg.sh Executable file
View file

@ -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