diff --git a/.github/workflows/feature-launcher.yml b/.github/workflows/feature-launcher.yml new file mode 100644 index 00000000..f21d1b98 --- /dev/null +++ b/.github/workflows/feature-launcher.yml @@ -0,0 +1,24 @@ +name: Automate Engineering Feature Release Campaigns + +on: + issues: + types: [labeled] + +jobs: + notify-discord: + if: github.event.label.name == 'feature-release' + runs-on: ubuntu-latest + steps: + - name: Send Feature Release Notification to Discord + env: + DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} + ISSUE_TITLE: ${{ github.event.issue.title }} + ISSUE_BODY: ${{ github.event.issue.body }} + ISSUE_URL: ${{ github.event.issue.html_url }} + run: | + curl -H "Content-Type: application/json" \ + -X POST \ + -d '{ + "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 }})" + }' \ + $DISCORD_WEBHOOK