Markus Pesch 8bd92f3a84
Some checks failed
Markdown linter / markdown-lint (push) Failing after 23s
chore(ci): improve error handling and push only ref
2025-04-14 17:21:17 +02:00

39 lines
876 B
YAML

name: Markdown linter
on:
pull_request:
types: [ "opened", "reopened", "synchronize" ]
push:
tags:
- '**'
jobs:
markdown-lint:
env:
AUR_SSH_KEY: ${{ secrets.AUR_SSH_KEY }}
runs-on:
- ubuntu-latest
steps:
- uses: actions/checkout@v4.2.2
with:
fetch-depth: 0
- name: Configure SSH client
run: |
mkdir ~/.ssh || true
chmod 0700 ~/.ssh
echo "${AUR_SSH_KEY}" | base64 --decode > ~/.ssh/id
chmod 0600 ~/.ssh/id
cat > ~/.ssh/config <<EOF
Host *
IdentityFile ~/.ssh/id
StrictHostKeyChecking no
EOF
- name: Push
run: |
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