diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2d7437ce..0c14227f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -5,6 +5,7 @@ name: Home Assistant CI on: push: pull_request: + workflow_dispatch: schedule: - cron: 0 12 * * * @@ -35,6 +36,10 @@ jobs: steps: - name: Getting your configuration from GitHub uses: actions/checkout@v1 + - name: Set up Python 3.8 + uses: actions/setup-python@v2 + with: + python-version: 3.8 - name: Copy stub files into configuration folder run: | cp -R secrets_github.yaml secrets.yaml @@ -96,5 +101,6 @@ jobs: python -m homeassistant --version - name: Home Assistant Check uses: "docker://homeassistant/home-assistant:dev" + continue-on-error: true with: args: python -m homeassistant --config ./ --script check_config --info all diff --git a/entities/rest_command/github_actions.yaml b/entities/rest_command/github_actions.yaml new file mode 100644 index 00000000..142a8b8a --- /dev/null +++ b/entities/rest_command/github_actions.yaml @@ -0,0 +1,12 @@ +##### +# Run GitHub workflow actions +# +##### + +github_actions: + url: https://api.github.com/BeardedTinker/Home-Assistant_Config/actions/workflows/main.yml/dispatches + method: POST + headers: + authorization: !secret github_token2 + Accept: "application/vnd.github.v3+json" + payload: '{"ref":"master"}' \ No newline at end of file