From 3258216739fde62e6ff5e2d14e5b900c9bd85445 Mon Sep 17 00:00:00 2001 From: strahi-linux Date: Thu, 10 Oct 2024 12:19:14 +0200 Subject: [PATCH] Added notification for test release --- .github/workflows/MCUsReleaseTest.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/MCUsReleaseTest.yaml b/.github/workflows/MCUsReleaseTest.yaml index a636711f9..79b425fc0 100644 --- a/.github/workflows/MCUsReleaseTest.yaml +++ b/.github/workflows/MCUsReleaseTest.yaml @@ -105,3 +105,13 @@ jobs: run: | echo "Indexing to Test." python -u scripts/index.py ${{ github.repository }} ${{ secrets.GITHUB_TOKEN }} ${{ secrets.ES_INDEX_TEST }} "False" ${{ github.event.inputs.release_version }} "False" "False" + + - name: Notify Mattermost - Test ready + env: + MATTERMOST_WEBHOOK_URL_SDK: ${{ secrets.MATTERMOST_WEBHOOK_URL_SDK }} + run: | + CURRENT_DATE=$(date +'%Y-%m-%d') # Get current date in YYYY-MM-DD format + MESSAGE="**MCU package update ready to test for $CURRENT_DATE.**\n> Test using latest NECTO dev\n + [LIN](https://software-update.mikroe.com/NECTOStudio7/development/necto/linux/NECTOInstaller.zip)\n + [MAC](https://software-update.mikroe.com/NECTOStudio7/development/necto/macos/NECTOInstaller.dmg)\n + [WIN](https://software-update.mikroe.com/NECTOStudio7/development/necto/win/NECTOInstaller.zip)" + curl -X POST -H 'Content-Type: application/json' \ + --data "{\"text\": \"$MESSAGE\"}" \ + $MATTERMOST_WEBHOOK_URL_SDK