File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1818
1919 steps :
2020 - name : Webpack TSC Meeting Agenda
21+ id : meeting
2122 uses : ' pkgjs/meet@v1'
2223 with :
2324 issueTitle : ' TSC Meeting <%= date.toZonedDateTimeISO("UTC").toPlainDate().toString() % >'
2829 schedules : ' 2025-05-05T11:00:00.0[America/Chicago]/P2W'
2930 createWithin : ' P7D'
3031 issueTemplate : ' meeting-agenda.md'
32+
33+ - name : Notify Discord
34+ if : steps.meeting.outputs.issueNumber
35+ env :
36+ DISCORD_WEBHOOK : ${{ secrets.DISCORD_WEBHOOK }}
37+ GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
38+ ISSUE_NUMBER : ${{ steps.meeting.outputs.issueNumber }}
39+ run : |
40+ ISSUE_JSON="$(gh issue view "$ISSUE_NUMBER" --repo "$GITHUB_REPOSITORY" --json title,url)"
41+ ISSUE_TITLE="$(echo "$ISSUE_JSON" | jq -r .title)"
42+ ISSUE_URL="$(echo "$ISSUE_JSON" | jq -r .url)"
43+
44+ curl -sS -X POST -H "Content-Type: application/json" -d '{
45+ "embeds": [{
46+ "title": "'"$ISSUE_TITLE"'",
47+ "url": "'"$ISSUE_URL"'"
48+ }]
49+ }' "$DISCORD_WEBHOOK"
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments