{"id":13706996,"url":"https://github.com/maddox/actions","last_synced_at":"2025-04-06T07:12:19.192Z","repository":{"id":47711132,"uuid":"153862200","full_name":"maddox/actions","owner":"maddox","description":"A collection of useful GitHub Actions","archived":false,"fork":false,"pushed_at":"2021-08-17T00:59:58.000Z","size":30,"stargazers_count":392,"open_issues_count":4,"forks_count":43,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-30T05:09:46.194Z","etag":null,"topics":["github-actions","home-automation","workflows"],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/maddox.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-10-20T02:28:42.000Z","updated_at":"2025-01-07T07:12:10.000Z","dependencies_parsed_at":"2022-08-28T10:21:27.855Z","dependency_job_id":null,"html_url":"https://github.com/maddox/actions","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maddox%2Factions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maddox%2Factions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maddox%2Factions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/maddox%2Factions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/maddox","download_url":"https://codeload.github.com/maddox/actions/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247445671,"owners_count":20939958,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["github-actions","home-automation","workflows"],"created_at":"2024-08-02T22:01:14.467Z","updated_at":"2025-04-06T07:12:19.170Z","avatar_url":"https://github.com/maddox.png","language":"Dockerfile","funding_links":[],"categories":["Dockerfile","Continuous Integration"],"sub_categories":["Messaging"],"readme":"# GitHub Actions\n\nFun with robots.\n\nThis is a collection of [GitHub Actions](https://github.com/features/actions) that I thought might be useful to others.\nThere aren't many for now, but any general actions I create will get stored here.\n\n## [Home Assistant Command](home-assistant)\n\nThis action allows you to make a service call to your Home Assistant instance.\nBlink a light when a deploy is done, set your lights to green when CI goes green,\nlock your front door until the deploy is complete.\n\nOf course you want to incorporate your smart devices into your GitHub workflow!\n\n\u003cimg width=\"303\" alt=\"image\" src=\"https://user-images.githubusercontent.com/260/47250759-603f2780-d3f5-11e8-9305-e65723aaee6c.png\"\u003e\n\n\n```\naction \"Flash office lights\" {\n  uses = \"maddox/actions/home-assistant@master\"\n  secrets = [\"HASS_HOST\", \"HASS_TOKEN\"]\n  env = {\n    SERVICE_DATA = \"{\\n  \\\"entity_id\\\": \\\"light.office\\\",\\n  \\\"flash\\\": \\\"short\\\"\\n}\"\n    DOMAIN = \"light\"\n    SERVICE = \"turn_on\"\n  }\n}\n```\n\n# [SSH](ssh)\n\nThis action will run the provided argument as a command on your $HOST via SSH.\n\n\u003cimg width=\"303\" alt=\"image\" src=\"https://user-images.githubusercontent.com/260/47310459-3eb48a80-d605-11e8-867f-702182404b51.png\"\u003e\n\n```\naction \"Run deploy script\" {\n  uses = \"maddox/actions/ssh@master\"\n  args = \"/opt/deploy/run\"\n  secrets = [\n    \"PRIVATE_KEY\",\n    \"HOST\",\n    \"USER\"\n  ]\n}\n```\n\n## [Sleep](sleep)\n\nThis action will simply call `sleep` for N seconds in case you need a little\npadding in your workflow.\n\n\u003cimg width=\"300\" alt=\"image\" src=\"https://user-images.githubusercontent.com/260/47250532-ac3b9d80-d3f0-11e8-88af-9215c626da22.png\"\u003e\n\n```\naction \"Sleep\" {\n  uses = \"maddox/actions/sleep@master\"\n  args = \"15\"\n}\n```\n\n## [Wait for 200](wait-for-200)\n\nThis action will simply check that a URL is returning a `200` HTTP status code\nbefore completing. You have the option to set how many seconds between checks\nand how many tries before it exits in failure.\n\n\u003cimg width=\"301\" alt=\"image\" src=\"https://user-images.githubusercontent.com/260/47251250-fd9f5900-d3ff-11e8-9a4f-d15343e9c3a3.png\"\u003e\n\n```\naction \"Wait for 200\" {\n  uses = \"maddox/actions/wait-for-200@master\"\n  env = {\n    URL = \"https://mysite.com\"\n    SECONDS_BETWEEN_CHECKS = \"2\"\n    MAX_TRIES = \"20\"\n  }\n}\n```\n\n# [Pushover Notifications](pushover)\n\nThis action allows you to send yourself a push notification via [Pushover.net](https://Pushover.net).\n\n\u003cimg width=\"301\" alt=\"Screen Shot 2019-04-10 at 2 13 27 AM\" src=\"https://user-images.githubusercontent.com/260/55855724-483f9980-5b36-11e9-8765-c85593edbeef.png\"\u003e\n\n```\naction \"Notify Completion\" {\n  uses = \"maddox/actions/pushover@master\"\n  secrets = [\"APP_TOKEN\", \"USER_KEY\"]\n  env = {\n    TITLE = \"Build Complete\"\n    MESSAGE = \"Your container has been built and verified.\"\n    URL = \"https://your.builddetails.com/builds/23212\"\n    URL_TITLE = \"Build Details\"\n    SOUND = \"magic\"\n    PRIORITY = \"1\"\n  }\n}\n```\n\n## License\n\n[MIT](LICENSE). Please see additional information in each subdirectory.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaddox%2Factions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaddox%2Factions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaddox%2Factions/lists"}