fix ssh_key not being in .ssh directory so not getting 600'd
This commit is contained in:
parent
15796a8cd4
commit
0175ec4feb
1 changed files with 2 additions and 2 deletions
|
@ -39,8 +39,8 @@ runs:
|
|||
|
||||
- name: Mirror to the AUR
|
||||
run: |
|
||||
printf '%s' '${{inputs.ssh_key}}' >ssh_key
|
||||
mkdir -p ~/.ssh
|
||||
printf '%s' '${{inputs.ssh_key}}' >~/.ssh/ssh_key
|
||||
echo 'aur.archlinux.org ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEuBKrPzbawxA/k2g6NcyV5jmqwJ2s+zpgZGZ7tpLIcN' >>~/.ssh/known_hosts
|
||||
chmod 700 ~/.ssh
|
||||
chmod 600 ~/.ssh/*
|
||||
|
@ -54,6 +54,6 @@ runs:
|
|||
[ "${{github.ref_name}}" == "main" ] || [ "${{github.ref_name}}" == "master" ] || \
|
||||
( echo "Git ref is neither main nor master, aborting"; exit 1 ) || exit 0
|
||||
|
||||
export GIT_SSH_COMMAND='ssh -i ssh_key -o IdentitiesOnly=yes'
|
||||
export GIT_SSH_COMMAND='ssh -i ~/.ssh/ssh_key -o IdentitiesOnly=yes'
|
||||
git remote add aur "ssh://aur@aur.archlinux.org/$pkgbase.git"
|
||||
git push aur "${{github.ref_name}}:master"
|
||||
|
|
Loading…
Add table
Reference in a new issue