diff --git a/.gitea/workflows/notify.yaml b/.gitea/workflows/notify.yaml index d9cb0f0..44f7dca 100644 --- a/.gitea/workflows/notify.yaml +++ b/.gitea/workflows/notify.yaml @@ -9,6 +9,14 @@ jobs: name: Send Notification runs-on: ubuntu-latest steps: + - name: Install jq + run: sudo apt update && sudo apt install -y jq + - name: Send Notification run: | + BASE_URL="https://git.konsthol.eu" + REPO_OWNER="konsthol" + REPO_NAME="WOL-Ly" + TAG_NAME="$(curl -s https://git.konsthol.eu/api/v1/repos/konsthol/WOL-Ly/releases/latest | jq -r '.tag_name')" + GITEA_RELEASE_URL="$BASE_URL/$REPO_OWNER/$REPO_NAME/releases/tag/$TAG_NAME" curl -s -H 'Cache: no' -d "A new release has been published! Check it out: $GITEA_RELEASE_URL 😎" konsthol.eu:5656/Releases