final test ?

This commit is contained in:
2025-04-14 23:02:09 +02:00
parent cb60c6f8a5
commit 9ce68f3e05

View File

@ -48,21 +48,23 @@ jobs:
} }
} }
EOF EOF
cat scripts/config.json
cd scripts cd scripts
bash create-adguardhome.sh bash create-adguardhome.sh
mkdir -p /tmp/artifacts cp output/adguardhome/lancache.conf /tmp/lancache.conf
cp output/adguardhome/lancache.conf /tmp/artifacts/lancache.conf
- name: Cat /tmp/artifacts/lancache.conf - name: Cat /tmp/lancache.conf
run: | run: |
cat /tmp/artifacts/lancache.conf cat /tmp/lancache.conf
- name: Upload artifacts - name: upload it on my repo
uses: actions/upload-artifact@v1 run: |
with: git clone git@git.ssh.uzurka.fr:Uzurka/lancache-adguardhome-config.git
name: output cd lancache-adguardhome-config
path: /tmp/artifacts/lancache.conf cp /tmp/lancache.conf ./
git add lancache.conf
git config --global user.name "Gitea Actions"
git commit -m "Update AGH Conf on $(date +'%Y-%m-%d')"
git push
- name: Send ntfy notification (Success) - name: Send ntfy notification (Success)
if: success() if: success()