From 6d6b8a6154b4147da1960690220242e393fdaaae Mon Sep 17 00:00:00 2001 From: strahi-linux Date: Thu, 10 Oct 2024 12:19:23 +0200 Subject: [PATCH] Added notification for test release --- .github/workflows/boardCardReleaseTest.yaml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/boardCardReleaseTest.yaml b/.github/workflows/boardCardReleaseTest.yaml index 3534c318f..a9370e24c 100644 --- a/.github/workflows/boardCardReleaseTest.yaml +++ b/.github/workflows/boardCardReleaseTest.yaml @@ -119,3 +119,13 @@ jobs: -H "X-GitHub-Api-Version: 2022-11-28" \ https://api.github.com/repos/$repo_owner/$repo_name/dispatches \ -d "{\"event_type\": \"$event_type\", \"client_payload\": {\"version\": \"$version\", \"index\": \"Test\", \"unit\": false, \"integration\": true}}" + + - 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="**SDK/BOARD/CARD 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