Closed gr2m closed 2 years ago
Going live in 30 minutes at https://twitch.tv/gregorcodes
I'm now live on https://twitch.tv/gregorcodes
Show is done for today, thank you all! Recording is coming up in a moment
Recording is now live, I've also updated the shownotes
Regarding the "Handle show done" workflow, that used the "issues.closed" trigger and is now using the "twitch.stream.offline" event: it didn't work π€·πΌ The reason is that the payload the issues
event has an .issue
key which is all properties from the issue that was closed. That information is not available when using the repository_dispatch
event, so I have to update the script to load the issue data for the current show manually.
ππ» Automating gr2m/helpdesk: Twitch Events π Thursday, October 21, 2021 π 10:00am Pacific Time ποΈ no guests π https://www.twitch.tv/gregorcodes π·οΈ automation
Subscribe to this issues to get a notification before the show begins and a summary after the show concludes.
Automating gr2m/helpdesk: π 10/21 @ 10:00am PT - Automating gr2m/helpdesk: Twitch Events
Instead of using a schedule-based trigger for when a show starts, I'll start using webhooks sent from Twitch itself, whenever I start a stream.
Outline
handle-twitch-events-using-github-actions
with a Netlify Function that responds to/.netlify/functions/ping
POST /.netlify/functions/twitch
and create repository dispatch eventsBonus
gr2m/helpdesk
repository, rreplace the current schedule trigger for the Handle show start workflow with the custom trigger when the webhook is receivedissues.closed
trigger for the Handle show done workflow with the custom trigger when the webhook is received. Close the show issueTODOs
Before the show
I already setup the Netlify function and the twitch subscription in the
gr2m/helpdesk
. I'll prepare the pieces so we can create a new repository from scratch step-by-step.When show begins
After the show
Recording
Shownotes
netlify dev
to start a local server,netlify dev --live
to start a local server with an http tunnel, so it's reachable by others, andnetlify init
to setup continuous deployment for the demo repository using Netlify-F
is the URL the simulated webhook request should be sent to.-s
is the secret you defined when you created the subscription.-t
is your account ID.