• Stars
    star
    393
  • Rank 106,389 (Top 3 %)
  • Language
    Dockerfile
  • Created over 5 years ago
  • Updated almost 3 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A collection of useful GitHub Actions

GitHub Actions

Fun with robots.

This is a collection of GitHub Actions that I thought might be useful to others. There aren't many for now, but any general actions I create will get stored here.

Home Assistant Command

This action allows you to make a service call to your Home Assistant instance. Blink a light when a deploy is done, set your lights to green when CI goes green, lock your front door until the deploy is complete.

Of course you want to incorporate your smart devices into your GitHub workflow!

image

action "Flash office lights" {
  uses = "maddox/actions/home-assistant@master"
  secrets = ["HASS_HOST", "HASS_TOKEN"]
  env = {
    SERVICE_DATA = "{\n  \"entity_id\": \"light.office\",\n  \"flash\": \"short\"\n}"
    DOMAIN = "light"
    SERVICE = "turn_on"
  }
}

SSH

This action will run the provided argument as a command on your $HOST via SSH.

image

action "Run deploy script" {
  uses = "maddox/actions/ssh@master"
  args = "/opt/deploy/run"
  secrets = [
    "PRIVATE_KEY",
    "HOST",
    "USER"
  ]
}

Sleep

This action will simply call sleep for N seconds in case you need a little padding in your workflow.

image

action "Sleep" {
  uses = "maddox/actions/sleep@master"
  args = "15"
}

Wait for 200

This action will simply check that a URL is returning a 200 HTTP status code before completing. You have the option to set how many seconds between checks and how many tries before it exits in failure.

image

action "Wait for 200" {
  uses = "maddox/actions/wait-for-200@master"
  env = {
    URL = "https://mysite.com"
    SECONDS_BETWEEN_CHECKS = "2"
    MAX_TRIES = "20"
  }
}

Pushover Notifications

This action allows you to send yourself a push notification via Pushover.net.

Screen Shot 2019-04-10 at 2 13 27 AM

action "Notify Completion" {
  uses = "maddox/actions/pushover@master"
  secrets = ["APP_TOKEN", "USER_KEY"]
  env = {
    TITLE = "Build Complete"
    MESSAGE = "Your container has been built and verified."
    URL = "https://your.builddetails.com/builds/23212"
    URL_TITLE = "Build Details"
    SOUND = "magic"
    PRIORITY = "1"
  }
}

License

MIT. Please see additional information in each subdirectory.

More Repositories

1

dasher

🔘 A simple way to bridge your Amazon Dash buttons to HTTP services
JavaScript
707
star
2

magic-cards

🎩 Queue music, play movies, or trigger events with RFID cards.
JavaScript
555
star
3

magick-installer

ImageMagick installer script because macports sucks
Shell
486
star
4

harmony-api

🗼 A simple server allowing you to query/control multiple local Harmony Home Hubs over HTTP or MQTT
JavaScript
390
star
5

kart

🎮 Frontend for RetroArch
CoffeeScript
368
star
6

itunes-api

🎵 A simple server providing a RESTful service for controlling iTunes
JavaScript
193
star
7

wallop

📺 A transcoding server for your HDHomeRun Prime
Ruby
167
star
8

imdb-party

IMDB client using the IMDB API that their iPhone app uses
Ruby
116
star
9

tvdb_party

Simple Ruby library to talk to thetvdb.com
Ruby
72
star
10

pluto-for-channels

📺 M3U generator optimized for Channels' custom channels.
JavaScript
69
star
11

imdb

Don't use this anymore, use maddox/imdb-party
Ruby
46
star
12

mac-api

Command your Mac from afar
Shell
32
star
13

categories

Community driven repo for awesome Objective-C categories
28
star
14

mgtwitterengine

Git fork of MGTwitterEngine
Objective-C
26
star
15

piano

Because you know you hate Apple's Stats
Ruby
26
star
16

arcade1up-tools

Arcade1Up Modding
20
star
17

freelancer

For your freelancing yo!
JavaScript
19
star
18

channels-strmlnks

Example stream links for Channels
18
star
19

gpi-tools

GPI Case Resources
18
star
20

instagrammer

Get personal RSS feed access to your Instagrams
JavaScript
15
star
21

impawards

Simple library to find high quality posters for movies
Ruby
10
star
22

regexkit

a fork of the objective-c RegexKit regular expression framework
10
star
23

tvdb

Ruby library for the TVDB
Ruby
8
star
24

movieposterdb

a simple ruby client for the MoviePosterDB api
Ruby
7
star
25

cbs_sports

A quickie library to read in sports scores
Ruby
6
star
26

trailers

library for retrieving trailer movies
Ruby
6
star
27

aim_status_helper

Rails plugin that will display a user's AIM status
Ruby
6
star
28

magic-cards-docker

Simple repo to get started with Magic Cards & Sonos right away.
Shell
5
star
29

xbmc-library

Ruby library to talk to the XBMC sqlite database
Ruby
5
star
30

broadcatcher

find your favorite shows via nzb
Ruby
5
star
31

college-humor-plex

Plex plugin for College Humor
Python
4
star
32

star-search

Cache, feed, and search your Campfire stars
Ruby
4
star
33

cocoaheads_gltouches

iPhone GL example app
Objective-C
3
star
34

giant_bomb

A simple Ruby library to talk to GiantBomb
Ruby
3
star
35

xbmc-remote

XBMC iPhone Remote
3
star
36

bracket_busters

Provides scores for NCAA tournament
JavaScript
3
star
37

webcam-resolver

📺 Fetch m3u8 URLs for hosted webcams.
Ruby
3
star
38

wrapper

GIT Mirror of The Worlds Worst Project
2
star
39

app_wiki

a place to store your app stuff
Ruby
2
star
40

broken.com

2
star
41

iphone2itunes

Browse and Watch the videos in your iTunes library from your iPhone.
JavaScript
2
star
42

test

2
star
43

mobile_scores

Finally, a simple freaking way to get your scores via your mobile
JavaScript
2
star
44

mschrag.github.com

mschrag.github.com
2
star
45

SiriProxy-Pugme

A simple SiriProxy plugin that will return a random photo of a pug
Ruby
2
star
46

star-searcher

Simple Ruby Client for Star Search - http://github.com/maddox/star-search
Ruby
2
star
47

slideshower

Simple way to generate the json that will power a future iPhone app that does simple slide shows
Ruby
2
star
48

Aeon-Slim

Slimified Aeon skin adjusted just for Plex
Python
2
star
49

nightscout-s3-proxy

🩸 Simple proxy for Nightscout data to S3
Shell
2
star
50

vlc

C
1
star
51

npe

npe
1
star
52

noodle

JavaScript
1
star
53

lol

JavaScript
1
star
54

rpi-docker-node-sonos-http-api

Docker wrapper for node-sonos-http-api for the Raspberry Pi
1
star
55

twictures

The code behind Twictur.es
Ruby
1
star