Big rework cuz i'm an asshole

This commit is contained in:
2025-04-14 22:43:13 +02:00
parent 505f4137d3
commit 7195620e38

View File

@ -25,14 +25,30 @@ jobs:
chmod 600 ~/.ssh/id_ed25519 chmod 600 ~/.ssh/id_ed25519
ssh-keyscan -H git.ssh.uzurka.fr >> ~/.ssh/known_hosts ssh-keyscan -H git.ssh.uzurka.fr >> ~/.ssh/known_hosts
- name: Clone original repo
run: |
git clone https://github.com/uklans/cache-domains.git
cd cache-domains
- name: Set config.json
run: |
echo "${{CONFIG_JSON}}" > scripts/config.json
- name: Generate new config - name: Generate new config
run: | run: |
git clone git@git.ssh.uzurka.fr:Uzurka/lancache-adgaurdhome-config.git cd scripts
cd lancache-adgaurdhome-config bash create-adguardhome.sh
bash scripts/create-adguardhome.sh
git add . - name: Clone my repo && update it
git commit -am "Update lancache domains $(date +%F)" run: |
git push cd ../../
git clone git@git.ssh.uzurka.fr:Uzurka/lancache-adguardhome-config.git
cd lancache-adguardhome-config
mv ../cache-domains/output/adguardhome/* ./
git config --global user.name "Gitea Actions"
git add lancache.conf
git commit -am "Update lancache domains $(date +%F)"
git push
- name: Send ntfy notification (Success) - name: Send ntfy notification (Success)
if: success() if: success()