little rework cuz i'm dumb
This commit is contained in:
@ -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()
|
||||
|
Reference in New Issue
Block a user