File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -182,16 +182,20 @@ jobs:
182182 cp -r aur /home/builduser/aur
183183 chown -R builduser:builduser /home/builduser/aur
184184
185- sudo -u builduser VERSION="$VERSION" bash -c '
185+ sudo -u builduser VERSION="$VERSION" GIT_SSH_COMMAND="ssh -i /home/builduser/.ssh/aur -o StrictHostKeyChecking=no -v" bash -c '
186186 cd /home/builduser
187- if git clone ssh://aur@aur.archlinux.org/krosshair.git aur-push 2>&1; then
187+ echo "Testing SSH connection..."
188+ ssh -T aur@aur.archlinux.org 2>&1 || true
189+ echo "Attempting to clone AUR repo..."
190+ GIT_SSH_COMMAND="ssh -i /home/builduser/.ssh/aur -o StrictHostKeyChecking=no" git clone ssh://aur@aur.archlinux.org/krosshair.git aur-push 2>&1 || true
191+ if [ -d "aur-push/.git" ]; then
188192 echo "Cloned existing AUR repo"
189193 cd aur-push
190194 git fetch origin
191195 git reset --hard origin/master
192196 cd ..
193197 else
194- echo "Creating new AUR repo"
198+ echo "Creating new AUR repo (clone failed) "
195199 mkdir -p aur-push
196200 cd aur-push
197201 git init
@@ -209,7 +213,7 @@ jobs:
209213 git config user.email "action@github.com"
210214 git add PKGBUILD .SRCINFO krosshair.install
211215 git commit -m "Update to v${VERSION}" || echo "No changes to commit"
212- GIT_SSH_COMMAND="ssh -i /home/builduser/.ssh/aur -o StrictHostKeyChecking=no" git push origin master
216+ git push origin master
213217 '
214218 env :
215219 AUR_SSH_KEY : ${{ secrets.AUR_SSH_KEY }}
You can’t perform that action at this time.
0 commit comments