Skip to content

Commit

Permalink
Added notification for test release
Browse files Browse the repository at this point in the history
  • Loading branch information
StrahinjaJacimovic committed Oct 10, 2024
1 parent 983418c commit 6d6b8a6
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/boardCardReleaseTest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 6d6b8a6

Please sign in to comment.