chore(ci): improve error handling and push only ref
Some checks failed
Markdown linter / markdown-lint (push) Failing after 23s

This commit is contained in:
2025-04-14 16:58:47 +02:00
parent 9280fb3553
commit 8bd92f3a84
3 changed files with 7 additions and 4 deletions

View File

@ -15,9 +15,11 @@ jobs:
- ubuntu-latest
steps:
- uses: actions/checkout@v4.2.2
with:
fetch-depth: 0
- name: Configure SSH client
run: |
mkdir ~/.ssh
mkdir ~/.ssh || true
chmod 0700 ~/.ssh
echo "${AUR_SSH_KEY}" | base64 --decode > ~/.ssh/id
@ -30,7 +32,8 @@ jobs:
EOF
- name: Push
run: |
git push ssh://aur@aur.archlinux.org/mint-backgrounds.git
echo "Push git ref ${{ github.ref }}"
git push ssh://aur@aur.archlinux.org/mint-backgrounds.git ${{ github.ref }}
- name: Remove SSH client configuration
run: |
rm -rf ~/.ssh