[bug] smart contract banner isn't showing in preview builds or production #61
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: Notify Discord on Bug Label | |
on: | |
issues: | |
types: [labeled] | |
jobs: | |
notify_bug: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Send Bug Notification to Discord | |
if: github.event.label.name == 'bug' | |
run: | | |
curl -H "Content-Type: application/json" \ | |
-X POST \ | |
-d "{ | |
\"content\": \"🐞 **Bug Report Created!**\n**Title:** ${{ github.event.issue.title }}\n**Link:** ${{ github.event.issue.html_url }}\" | |
}" \ | |
${{ secrets.DISCORD_WEBHOOK_URL }} |