Skip to content

Slack notifications for theme releases #6

Slack notifications for theme releases

Slack notifications for theme releases #6

Workflow file for this run

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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'