From 99a32232a6936c4f33c85058300e41f6aad96ade Mon Sep 17 00:00:00 2001 From: 简律纯 Date: Tue, 24 Feb 2026 16:55:31 +0800 Subject: Refactor SSH setup and clone AUR repository --- .github/workflows/publish-aur.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/publish-aur.yml b/.github/workflows/publish-aur.yml index 00395ec..ee4eec9 100644 --- a/.github/workflows/publish-aur.yml +++ b/.github/workflows/publish-aur.yml @@ -39,15 +39,12 @@ jobs: - name: Add AUR host to known_hosts run: ssh-keyscan -t ed25519 aur.archlinux.org >> ~/.ssh/known_hosts - - name: Debug SSH setup - run: | - ls -l ~/.ssh - cat ~/.ssh/id_ed25519 - cat ~/.ssh/known_hosts + - name: Set SSH permissions for current user + run: chown $(id -u):$(id -g) ~/.ssh/id_ed25519 ~/.ssh/known_hosts - - name: Clone AUR repository and update PKGBUILD + - name: Clone AUR repository run: | - git clone ssh://aur@aur.archlinux.org/soon.git aur-repo + GIT_SSH_COMMAND="ssh -i ~/.ssh/id_ed25519 -o UserKnownHostsFile=~/.ssh/known_hosts" git clone ssh://aur@aur.archlinux.org/soon.git aur-repo cd aur-repo if [ "${{ github.event_name }}" = "workflow_dispatch" ] && [ "${{ github.event.inputs.tag }}" != "" ]; then -- cgit v1.2.3-70-g09d2