Slack notifications for theme releases #6
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: Slack notification for new theme release | |
| on: | |
| pull_request: | |
| permissions: | |
| contents: read | |
| jobs: | |
| release-notification: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| actions: read # for 8398a7/action-slack | |
| checks: read | |
| steps: | |
| - name: Send notification | |
| uses: 8398a7/action-slack@1750b5085f3ec60384090fb7c52965ef822e869e # v3.18.0 | |
| with: | |
| status: custom | |
| custom_payload: | | |
| { | |
| username: 'Github', | |
| mention: 'channel', | |
| attachments: [{ | |
| title: `New theme release - THEME NAME`, | |
| color: '#009223', | |
| fields: [ | |
| { | |
| title: 'Preview', | |
| value: `SOME PREVIEW LINK`, | |
| short: false | |
| }, | |
| { | |
| title: 'Tag', | |
| value: `TAG VALUE`, | |
| short: true | |
| } | |
| ] | |
| }] | |
| } | |
| env: | |
| SLACK_WEBHOOK_URL: 'https://hooks.slack.com/services/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' |