final test ?
This commit is contained in:
@ -48,21 +48,23 @@ jobs:
|
||||
}
|
||||
}
|
||||
EOF
|
||||
cat scripts/config.json
|
||||
cd scripts
|
||||
bash create-adguardhome.sh
|
||||
mkdir -p /tmp/artifacts
|
||||
cp output/adguardhome/lancache.conf /tmp/artifacts/lancache.conf
|
||||
cp output/adguardhome/lancache.conf /tmp/lancache.conf
|
||||
|
||||
- name: Cat /tmp/artifacts/lancache.conf
|
||||
- name: Cat /tmp/lancache.conf
|
||||
run: |
|
||||
cat /tmp/artifacts/lancache.conf
|
||||
cat /tmp/lancache.conf
|
||||
|
||||
- name: Upload artifacts
|
||||
uses: actions/upload-artifact@v1
|
||||
with:
|
||||
name: output
|
||||
path: /tmp/artifacts/lancache.conf
|
||||
- name: upload it on my repo
|
||||
run: |
|
||||
git clone git@git.ssh.uzurka.fr:Uzurka/lancache-adguardhome-config.git
|
||||
cd lancache-adguardhome-config
|
||||
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)
|
||||
if: success()
|
||||
|
Reference in New Issue
Block a user