Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Commit baeef8c

Browse files
authored
Create feature-launcher.yml (#1068)
1 parent c3ef51e commit baeef8c

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Automate Engineering Feature Release Campaigns
2+
3+
on:
4+
issues:
5+
types: [labeled]
6+
7+
jobs:
8+
notify-discord:
9+
if: github.event.label.name == 'feature-release'
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Send Feature Release Notification to Discord
13+
env:
14+
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
15+
ISSUE_TITLE: ${{ github.event.issue.title }}
16+
ISSUE_BODY: ${{ github.event.issue.body }}
17+
ISSUE_URL: ${{ github.event.issue.html_url }}
18+
run: |
19+
curl -H "Content-Type: application/json" \
20+
-X POST \
21+
-d '{
22+
"content": "**🚀 New Feature Launched!**\n\n🎉 *${{ env.ISSUE_TITLE }}* is now available to try!\n📖 Description: ${{ env.ISSUE_BODY }}\n🔗 [Check it out here](${{ env.ISSUE_URL }})"
23+
}' \
24+
$DISCORD_WEBHOOK

0 commit comments

Comments
 (0)