diff --git a/.gitea/workflows/update-check.yml b/.gitea/workflows/update-check.yml index c461894..fb85832 100644 --- a/.gitea/workflows/update-check.yml +++ b/.gitea/workflows/update-check.yml @@ -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 }}