Commit 993d523ea9

993d523ea9edcc9bb10a1ee97716e5ef6b8d0ed7

parent: 909c7069ce

Unsigned

Wraient <wraient.911@gmail.com> · 2025-08-26 22:34 UTC

fix: ci/cd

Layout: unified · split

.github/workflows/update-aur.yml +28 −4
@@ -40,7 +40,10 @@ jobs:
4040 - name: Set up SSH for AUR
4141 run: |
4242 mkdir -p ~/.ssh
43 echo "${{ secrets.AUR_SSH_KEY }}" > ~/.ssh/aur_rsa
43 # Write the SSH key, ensuring proper formatting
44 cat > ~/.ssh/aur_rsa << 'EOF'
45 ${{ secrets.AUR_SSH_KEY }}
46 EOF
4447 chmod 600 ~/.ssh/aur_rsa
4548
4649 # Create SSH config for AUR
@@ -50,6 +53,7 @@ jobs:
5053 User aur
5154 IdentityFile ~/.ssh/aur_rsa
5255 StrictHostKeyChecking no
56 IdentitiesOnly yes
5357 EOF
5458
5559 # Start SSH agent and add key with passphrase
@@ -59,11 +63,31 @@ jobs:
5963
6064 # Use expect to add the key with passphrase
6165 expect -c "
66 set timeout 10
6267 spawn ssh-add ~/.ssh/aur_rsa
63 expect \"Enter passphrase\"
64 send \"sex\r\"
65 expect eof
68 expect {
69 \"Enter passphrase\" {
70 send \"sex\r\"
71 exp_continue
72 }
73 \"Identity added\" {
74 puts \"Key successfully added\"
75 }
76 \"Bad passphrase\" {
77 puts \"Bad passphrase\"
78 exit 1
79 }
80 timeout {
81 puts \"Timeout waiting for passphrase prompt\"
82 exit 1
83 }
84 eof
85 }
6686 "
87
88 # Test SSH connection (output suppressed for security)
89 echo "Testing SSH connection to AUR..."
90 ssh -T aur@aur.archlinux.org >/dev/null 2>&1 && echo "SSH connection successful" || echo "SSH connection failed (this might be normal for AUR)"
6791
6892 - name: Clone AUR repository
6993 run: |