aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.github/workflows/publish-aur.yml
diff options
context:
space:
mode:
author简律纯 <i@jyunko.cn>2026-02-24 16:55:31 +0800
committerGitHub <noreply@github.com>2026-02-24 16:55:31 +0800
commit99a32232a6936c4f33c85058300e41f6aad96ade (patch)
tree5d43cdb495b019bb27108973d6e985eb6647f1ca /.github/workflows/publish-aur.yml
parentfa16122d2a9b2e4f5c5c43d0fd99a3b3086b0d90 (diff)
downloadsoon-99a32232a6936c4f33c85058300e41f6aad96ade.tar.gz
soon-99a32232a6936c4f33c85058300e41f6aad96ade.zip
Refactor SSH setup and clone AUR repository
Diffstat (limited to '.github/workflows/publish-aur.yml')
-rw-r--r--.github/workflows/publish-aur.yml11
1 files 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