create .ssh dir if necessary
This commit is contained in:
parent
f4ec72e937
commit
15796a8cd4
1 changed files with 3 additions and 0 deletions
|
@ -40,7 +40,10 @@ runs:
|
||||||
- name: Mirror to the AUR
|
- name: Mirror to the AUR
|
||||||
run: |
|
run: |
|
||||||
printf '%s' '${{inputs.ssh_key}}' >ssh_key
|
printf '%s' '${{inputs.ssh_key}}' >ssh_key
|
||||||
|
mkdir -p ~/.ssh
|
||||||
echo 'aur.archlinux.org ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEuBKrPzbawxA/k2g6NcyV5jmqwJ2s+zpgZGZ7tpLIcN' >>~/.ssh/known_hosts
|
echo 'aur.archlinux.org ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEuBKrPzbawxA/k2g6NcyV5jmqwJ2s+zpgZGZ7tpLIcN' >>~/.ssh/known_hosts
|
||||||
|
chmod 700 ~/.ssh
|
||||||
|
chmod 600 ~/.ssh/*
|
||||||
|
|
||||||
pkgbase='${{inputs.pkgbase}}'
|
pkgbase='${{inputs.pkgbase}}'
|
||||||
[ -n "$pkgbase" ] || pkgbase="$( (. PKGBUILD && printf '%s' "$pkgbase") )"
|
[ -n "$pkgbase" ] || pkgbase="$( (. PKGBUILD && printf '%s' "$pkgbase") )"
|
||||||
|
|
Loading…
Reference in a new issue