Countly Version 25.03.20 #144
Workflow file for this run
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | name: Release Notice | |
| on: | |
| release: | |
| types: [published] | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| # To check the github context | |
| - name: Dump Github context | |
| env: | |
| GITHUB_CONTEXT: ${{ toJSON(github) }} | |
| run: echo "$GITHUB_CONTEXT" | |
| - name: Send custom JSON data to Slack workflow | |
| id: slack | |
| uses: slackapi/[email protected] | |
| with: | |
| # This data can be any valid JSON from a previous step in the GitHub Action | |
| webhook: ${{ secrets.SLACK_RELEASE }} | |
| webhook-type: incoming-webhook | |
| payload: | | |
| { | |
| "repository": "${{ github.repository }}", | |
| "tag_name": "${{ github.event.release.tag_name }}", | |
| "actor": "${{ github.actor }}", | |
| "body": ${{ toJSON(github.event.release.body) }}, | |
| "html_url": "${{ github.event.release.html_url }}" | |
| } | |
| env: | |
| SLACK_WEBHOOK_URL: ${{ secrets.SLACK_RELEASE }} | |
| - name: Send custom JSON data to Discord | |
| uses: sarisia/[email protected] | |
| with: | |
| webhook: ${{ secrets.DISCORD_WEBHOOK_URL }} | |
| nodetail: true | |
| title: New ${{ github.repository }} version ${{ github.event.release.tag_name }} published by ${{ github.actor }} | |
| description: | | |
| Release URL: ${{ github.event.release.html_url }} | |
| Click [here](https://github.com/${{ github.repository }}/blob/master/CHANGELOG.md) to view the change log. | |
| `${{ github.event.release.body }}` |