Operate SwitchBot using GitHub Actions.
Upload.from.GitHub.for.iOS.MOV
Required SwitchBot token used to create a client.
Check here for how to get token.
Recommended to use GitHub Secrets.
Either deviceName or sceneName is required.
Supports turnOff, turnOn and press.
Default is press.
Either deviceName or sceneName is required.
If PR is approved, the light bulb will illuminate.
name: Turn on the light
on:
pull_request_review:
types: [submitted]
jobs:
turn-on:
runs-on: ubuntu-latest
steps:
- name: Turn on the light
uses: Doarakko/action-switchbot@main
with:
token: ${{secrets.SWITCHBOT_TOKEN}}
deviceName: light AA
command: turnOn