Git Product home page Git Product logo

stupid-actions's Introduction

Stupid Actions

This repo contains stupid GitHub actions. They are:

Video Walkthrough

I created a video explanation of these actions here: https://www.youtube.com/watch?v=w7-ugGAYVCo

Holiday Reminder

By using a cron schedule string and the fact that a failed job sends an email, we can make a holiday reminder email.

We can even make sure to include specific text by naming our workflow and jobs with the desired info!


Recursive Action

By creating a commit and pushing it within an action triggered on push this would be trivial, except that GitHub specifically prevents commits made by the default repo token from triggering new workflows.

To get around this, we use a Personal Access Token to perform the git commands and to prevent the chain from continuing forever we increment a counter file in the repo.


Exponential Action

Creating infinite actions using the Recursive Action above was fun... but how can we do it faster?!

This action triggers N new workflows with each run. We cant use the same file counter trick to contain the process because of issues with the workflows trying to make simultaneous commits, so we move the counters into tags!


Turning on Smart Lights with Each Commit

With some smart plugs and a python API client we can configure an action to turn our lights on for some period of time.

This is the ultimate way to incentivize code velocity... we need to commit new code every N minutes to keep the lights on!


World's Worst Tic-Tac-Toe UX

The game Tic-Tac-Toe where you play a turn, commit the resulting board, wait for the AI to play its turn (within a GitHub action), and then play your next turn...

To play run: node ./tic-tac-toe/index.js


INSERT YOUR IDEA HERE

Add an issue with your idea for a stupid action (or even better make a pull request!)

stupid-actions's People

Contributors

dependabot[bot] avatar sidpalas avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.