Skip to content

Commit 9832811

Browse files
Merge pull request #78 from avivkeller/patch-1
2 parents 1f40f6f + 85e8172 commit 9832811

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: TSC Meeting Discord Reminder
2+
3+
on:
4+
issues:
5+
types: [opened]
6+
7+
jobs:
8+
send-discord-reminder:
9+
runs-on: ubuntu-latest
10+
if: github.event.issue.user.login == 'github-actions[bot]' && startsWith(github.event.issue.title, 'TSC Meeting')
11+
12+
env:
13+
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
14+
ISSUE_TITLE: ${{ github.event.issue.title }}
15+
ISSUE_URL: ${{ github.event.issue.html_url }}
16+
17+
steps:
18+
- name: Send message to Discord
19+
run: |
20+
curl -sS -X POST -H "Content-Type: application/json" -d '{
21+
"embeds": [{
22+
"title": "'"$ISSUE_TITLE"'",
23+
"url": "'"$ISSUE_URL"'
24+
}]
25+
}' "$DISCORD_WEBHOOK"

0 commit comments

Comments
 (0)