From 505f4137d36d3824f5130eda4fdb825cdc0948e6 Mon Sep 17 00:00:00 2001 From: uzurka Date: Mon, 14 Apr 2025 22:31:57 +0200 Subject: [PATCH] little rework cuz i'm dumb --- .gitea/workflows/gen.yaml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/gen.yaml b/.gitea/workflows/gen.yaml index 9918eda..7a2b350 100644 --- a/.gitea/workflows/gen.yaml +++ b/.gitea/workflows/gen.yaml @@ -18,13 +18,21 @@ jobs: -d "Generating AdguardHome config for Lancache" \ https://ntfy.uzurka.fr/lancache - - name: Setup jq + - name: Setup SSH run: | - apt update && apt install -y jq + mkdir -p ~/.ssh + echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_ed25519 + chmod 600 ~/.ssh/id_ed25519 + ssh-keyscan -H git.ssh.uzurka.fr >> ~/.ssh/known_hosts - name: Generate new config run: | + git clone git@git.ssh.uzurka.fr:Uzurka/lancache-adgaurdhome-config.git + cd lancache-adgaurdhome-config bash scripts/create-adguardhome.sh + git add . + git commit -am "Update lancache domains $(date +%F)" + git push - name: Send ntfy notification (Success) if: success()