GitHub Actions Day 25: Sparkle a Christmas Tree
This is day 25 of my GitHub Actions Advent Calendar. If you want to see the whole list of tips as they're published, see the index.
Today's Christmas, which means I'll spend it with my family. But I also thought it would be a good time to highlight a neat -- and holiday-themed -- use of GitHub Actions.
My buddy Martin set up a workflow that will run whenever somebody
stars his repository. When that happens, he'll use curl
to hit
an external API that his internet-connected Christmas tree lights
listen for. So whenever somebody stars his repository, his lights
light up!
If you want to put a bit of sparkle into your @GitHub Actions or just learn how to control any other electrical device then check out https://t.co/kXlXDSICXk - Star the repo to turn on my lights ✨🎄 pic.twitter.com/qMrV2ZYqLL
— Martin Woodward (@martinwoodward) December 17, 2019
This is another inventive use of actions -- listening for an event within the repository, and running a clever workflow.
Merry Christmas, Martin! I hope you get lots of lights on your tree today. And Merry Christmas to you, reader. Thanks for following along this month.