From a637ee227839f4283566c1f9a80e76c1059bd93e Mon Sep 17 00:00:00 2001 From: Ettore Di Giacinto Date: Thu, 4 Jul 2024 09:22:31 +0200 Subject: [PATCH] ci: use different channel for release notifications, enhance prompt Signed-off-by: Ettore Di Giacinto --- .github/workflows/notify-models.yaml | 2 +- .github/workflows/notify-releases.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/notify-models.yaml b/.github/workflows/notify-models.yaml index 76e1bd12..0d0b8dbd 100644 --- a/.github/workflows/notify-models.yaml +++ b/.github/workflows/notify-models.yaml @@ -42,7 +42,7 @@ jobs: messages: [ { role: "system", - content: "Write a discord message to notify everyone about the new model from the git diff. Make it informal. An example can include: the URL of the model, the name, and a brief description of the model if exists." + content: "Write a discord message to notify everyone about the new model from the git diff. Make it informal. An example can include: the URL of the model, the name, and a brief description of the model if exists. Also add an hint on how to install it in LocalAI. For example: local-ai run model_name_here" }, { role: "user", diff --git a/.github/workflows/notify-releases.yaml b/.github/workflows/notify-releases.yaml index b4f1ef62..0f4379aa 100644 --- a/.github/workflows/notify-releases.yaml +++ b/.github/workflows/notify-releases.yaml @@ -57,7 +57,7 @@ jobs: } >> "$GITHUB_OUTPUT" - name: Discord notification env: - DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_URL }} + DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_URL_RELEASE }} DISCORD_USERNAME: "LocalAI-Bot" DISCORD_AVATAR: "https://avatars.githubusercontent.com/u/139863280?v=4" uses: Ilshidur/action-discord@master