Repository navigation
@nvidia-elements/monaco-v2.1.0 #102
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 Slack Notification | |
| on: | |
| release: | |
| types: [published] | |
| permissions: | |
| contents: read | |
| jobs: | |
| notify: | |
| name: Notify Slack (${{ matrix.destination }}) | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| destination: [primary, ci] | |
| runs-on: ubuntu-latest | |
| env: | |
| SLACK_PAYLOAD: | | |
| text: "New Elements Release ${{ github.event.release.tag_name }}" | |
| blocks: | |
| - type: section | |
| text: | |
| type: mrkdwn | |
| text: | | |
| *New Release* :rocket: | |
| <${{ github.event.release.html_url }}|${{ github.event.release.tag_name }}> | |
| <https://nvidia.github.io/elements/docs/changelog/|Changelog> | |
| <https://nvidia.github.io/elements/|Documentation> | |
| steps: | |
| - name: Notify primary Slack channel | |
| if: matrix.destination == 'primary' | |
| uses: slackapi/slack-github-action@dcb1066f776dd043e64d0e8ba94ca15cc7e1875d | |
| with: | |
| webhook: ${{ secrets.SLACK_WEBHOOK_URL }} | |
| webhook-type: incoming-webhook | |
| payload: ${{ env.SLACK_PAYLOAD }} | |
| - name: Notify CI Slack channel | |
| if: matrix.destination == 'ci' | |
| uses: slackapi/slack-github-action@dcb1066f776dd043e64d0e8ba94ca15cc7e1875d | |
| with: | |
| webhook: ${{ secrets.SLACK_WEBHOOK_URL_CI }} | |
| webhook-type: incoming-webhook | |
| payload: ${{ env.SLACK_PAYLOAD }} |