0
0

.gitea/workflows/update-check.yml aktualisiert
All checks were successful
HUGO Update Check / update-check (push) Successful in 2s

This commit is contained in:
Denys Konovalov 2024-07-07 11:18:07 +02:00
parent d9461faf15
commit 260e431fce

@ -23,3 +23,10 @@ jobs:
export NEWEST_HUGO_RELEASE=$(curl -s https://api.github.com/repos/gohugoio/hugo/releases | jq -r '.[0].name' | sed 's/v//g')
curl -LO https://github.com/gohugoio/hugo/releases/download/v$(echo $NEWEST_HUGO_RELEASE)/hugo_extended_$(echo $NEWEST_HUGO_RELEASE)_linux-amd64.deb
curl --user ${{ secrets.DOCKER_USERNAME }}:${{ secrets.DOCKER_PASSWORD }} --upload-file hugo_extended_$(echo $NEWEST_HUGO_RELEASE)_linux-amd64.deb https://git.cantorgymnasium.de/api/packages/gcg/debian/pool/all/main/upload
- name: Notification
uses: actions/telegram-action@main
if: always() && steps.check.outputs.update_available == 1
with:
chat_id: ${{ secrets.TG_CHAT_ID }}
token: ${{ secrets.TG_TOKEN }}