From 59a64138c16695f69ce36c857dbdfffc78e889bc Mon Sep 17 00:00:00 2001
From: Markus Pesch <markus.pesch@cryptic.systems>
Date: Sun, 13 Apr 2025 23:11:18 +0200
Subject: [PATCH 1/2] fix(ci): use act_runner

---
 .gitea/workflows/markdown-linters.yaml | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644 .gitea/workflows/markdown-linters.yaml

diff --git a/.gitea/workflows/markdown-linters.yaml b/.gitea/workflows/markdown-linters.yaml
new file mode 100644
index 0000000..e6613e2
--- /dev/null
+++ b/.gitea/workflows/markdown-linters.yaml
@@ -0,0 +1,22 @@
+name: Markdown linter
+
+on:
+  pull_request:
+    types: [ "opened", "reopened", "synchronize" ]
+  push:
+    branches:
+    - '**'
+    tags-ignore:
+    - '**'
+  workflow_dispatch: {}
+
+jobs:
+  markdown-lint:
+    container:
+      image: git.cryptic.systems/volker.raschek/markdownlint:0.44.0
+    runs-on:
+    - ubuntu-latest
+    steps:
+    - uses: actions/checkout@v4.2.2
+    - name: Lint Markdown files
+      run: markdownlint .
\ No newline at end of file

From 71cb9a0cbfe6195de289d6ff660242c55b816a31 Mon Sep 17 00:00:00 2001
From: Markus Pesch <markus.pesch@cryptic.systems>
Date: Mon, 14 Apr 2025 16:44:45 +0200
Subject: [PATCH 2/2] chore(workflows): add sync

---
 .gitea/workflows/markdown-linters.yaml |  2 +-
 .gitea/workflows/sync.yaml             | 36 ++++++++++++++++++++++++++
 2 files changed, 37 insertions(+), 1 deletion(-)
 create mode 100644 .gitea/workflows/sync.yaml

diff --git a/.gitea/workflows/markdown-linters.yaml b/.gitea/workflows/markdown-linters.yaml
index e6613e2..74e81ea 100644
--- a/.gitea/workflows/markdown-linters.yaml
+++ b/.gitea/workflows/markdown-linters.yaml
@@ -19,4 +19,4 @@ jobs:
     steps:
     - uses: actions/checkout@v4.2.2
     - name: Lint Markdown files
-      run: markdownlint .
\ No newline at end of file
+      run: markdownlint --config .markdownlint.yaml .
\ No newline at end of file
diff --git a/.gitea/workflows/sync.yaml b/.gitea/workflows/sync.yaml
new file mode 100644
index 0000000..f56b002
--- /dev/null
+++ b/.gitea/workflows/sync.yaml
@@ -0,0 +1,36 @@
+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
+    - name: Configure SSH client
+      run: |
+        mkdir ~/.ssh
+        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: |
+        git push ssh://aur@aur.archlinux.org/mint-backgrounds.git
+    - name: Remove SSH client configuration
+      run: |
+        rm -rf ~/.ssh
\ No newline at end of file