Skip to content

Release v0.88.0

Release v0.88.0 #109

Workflow file for this run

name: notify-release
on:
release:
types: [published]
jobs:
notify:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@24cb9080177205b6e8c946b17badbe402adc938f #v3.4.0
- shell: bash
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: |
REPO=$(echo $GITHUB_CONTEXT | jq -r '.repository')
TAGVERSION=$(echo $GITHUB_CONTEXT | jq -r '.event.release.tag_name')
TAGURL=$(echo $GITHUB_CONTEXT | jq -r '.event.release.html_url')
BODY=$(echo $GITHUB_CONTEXT | jq -r '.event.release.body' | sed -E ':a;N;$!ba;s/\r{0,1}\n/\\n/g')
echo "{\"username\":\"Cloud Bot Notify\",\"icon_url\":\"https://mattermost.com/wp-content/uploads/2022/02/icon.png\",\"text\":\"# **New Release for $REPO** - Release [$TAGVERSION]($TAGURL)\n $BODY\"}" > mattermost.json
cat mattermost.json
- uses: mattermost/[email protected]
env:
MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }}