From 2fed01defa9f8442d0d35bb972943d207f0cf810 Mon Sep 17 00:00:00 2001 From: stirelshka8 Date: Sat, 20 Jul 2024 15:41:10 +0300 Subject: [PATCH] Add send Gotify --- .gitea/workflows/publish.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.gitea/workflows/publish.yml b/.gitea/workflows/publish.yml index 9b2976b..2fc8025 100644 --- a/.gitea/workflows/publish.yml +++ b/.gitea/workflows/publish.yml @@ -38,4 +38,12 @@ jobs: echo "$TAG" > versionagent.txt aws --endpoint-url=http://${{ secrets.AWS_HOST }} s3 cp ./versionagent.txt s3://doc + - name: Send message to Gotify + run: | + TAG="${{ github.ref }}" + TAG="${TAG#refs/tags/}" + TAG="${TAG#v}" + curl -X POST "https://push.adminlabs.space/message?token=${{ secrets.GOTIFY_TOKEN }}" -F "title=New version $TAG" -F "message=Create new version install_agent.sh $TAG" -F "priority=8" + +