create .ssh dir if necessary

This commit is contained in:
Dominic 2023-03-25 23:08:39 +01:00
parent f4ec72e937
commit 15796a8cd4
Signed by: msrd0
GPG key ID: DCC8C247452E98F9

View file

@ -40,7 +40,10 @@ runs:
- name: Mirror to the AUR
run: |
printf '%s' '${{inputs.ssh_key}}' >ssh_key
mkdir -p ~/.ssh
echo 'aur.archlinux.org ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEuBKrPzbawxA/k2g6NcyV5jmqwJ2s+zpgZGZ7tpLIcN' >>~/.ssh/known_hosts
chmod 700 ~/.ssh
chmod 600 ~/.ssh/*
pkgbase='${{inputs.pkgbase}}'
[ -n "$pkgbase" ] || pkgbase="$( (. PKGBUILD && printf '%s' "$pkgbase") )"