Skip to content

Commit 990f335

Browse files
committed
Use ~ normally
1 parent f197ea1 commit 990f335

File tree

1 file changed

+7
-12
lines changed

1 file changed

+7
-12
lines changed

.github/actions/aur-publish/entrypoint.sh

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,33 +2,28 @@
22
set -euo pipefail
33
export HOME=/home/app # fix weird actions env
44

5-
# TEMP does it fix this too?
6-
(cd ~ && pwd)
7-
8-
cd /home/app
9-
105
echo "::group::Configuring SSH"
11-
mkdir -p ./.ssh
6+
mkdir -p ~/.ssh
127

13-
cat > ./.ssh/aur <<EOM
8+
cat > ~/.ssh/aur <<EOM
149
$SSH_PRIVATE_KEY
1510
EOM
1611

17-
cat > ./.ssh/config <<'EOM'
12+
cat > ~/.ssh/config <<'EOM'
1813
Host aur.archlinux.org
1914
IdentityFile ~/.ssh/aur
2015
User aur
2116
EOM
2217

23-
cat > ./.ssh/known_hosts <<'EOM'
18+
cat > ~/.ssh/known_hosts <<'EOM'
2419
aur.archlinux.org ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEuBKrPzbawxA/k2g6NcyV5jmqwJ2s+zpgZGZ7tpLIcN
2520
aur.archlinux.org ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDKF9vAFWdgm9Bi8uc+tYRBmXASBb5cB5iZsB7LOWWFeBrLp3r14w0/9S2vozjgqY5sJLDPONWoTTaVTbhe3vwO8CBKZTEt1AcWxuXNlRnk9FliR1/eNB9uz/7y1R0+c1Md+P98AJJSJWKN12nqIDIhjl2S1vOUvm7FNY43fU2knIhEbHybhwWeg+0wxpKwcAd/JeL5i92Uv03MYftOToUijd1pqyVFdJvQFhqD4v3M157jxS5FTOBrccAEjT+zYmFyD8WvKUa9vUclRddNllmBJdy4NyLB8SvVZULUPrP3QOlmzemeKracTlVOUG1wsDbxknF1BwSCU7CmU6UFP90kpWIyz66bP0bl67QAvlIc52Yix7pKJPbw85+zykvnfl2mdROsaT8p8R9nwCdFsBc9IiD0NhPEHcyHRwB8fokXTajk2QnGhL+zP5KnkmXnyQYOCUYo3EKMXIlVOVbPDgRYYT/XqvBuzq5S9rrU70KoI/S5lDnFfx/+lPLdtcnnEPk=
2621
aur.archlinux.org ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBLMiLrP8pVi5BFX2i3vepSUnpedeiewE5XptnUnau+ZoeUOPkpoCgZZuYfpaIQfhhJJI5qgnjJmr4hyJbe/zxow=
2722
EOM
2823

29-
chmod 700 ./.ssh
30-
chmod 600 ./.ssh/{aur,config}
31-
chmod 644 ./.ssh/known_hosts
24+
chmod 700 ~/.ssh
25+
chmod 600 ~/.ssh/{aur,config}
26+
chmod 644 ~/.ssh/known_hosts
3227
echo "::endgroup::"
3328

3429
echo "::group::Cloning repository"

0 commit comments

Comments
 (0)