Skip to content

Commit

Permalink
Enable Slack notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
Anboias committed Mar 26, 2024
1 parent 66fa7d9 commit ede012d
Showing 1 changed file with 26 additions and 26 deletions.
52 changes: 26 additions & 26 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,29 +36,29 @@ jobs:
git commit -m "Generated build output" -a || exit 0 # This line prevents the action from failing if there's nothing to commit
git push
# - name: Notify Slack about the update
# uses: 8398a7/action-slack@v3
# with:
# status: custom
# custom_payload: |
# {
# "blocks": [
# {
# "type": "header",
# "text": {
# "type": "plain_text",
# "text": "✅ Design Tokens updated!"
# }
# },
# {
# "type": "section",
# "text": {
# "type": "mrkdwn",
# "text": "${{ github.event.head_commit.message }}"
# }
# }
# ]
# }
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
- name: Notify Slack about the update
uses: 8398a7/action-slack@v3
with:
status: custom
custom_payload: |
{
"blocks": [
{
"type": "header",
"text": {
"type": "plain_text",
"text": "✅ Design Tokens updated!"
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "${{ github.event.head_commit.message }}"
}
}
]
}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

0 comments on commit ede012d

Please sign in to comment.