mirror of
https://github.com/esphome/esphome.git
synced 2024-11-23 23:48:11 +01:00
4ece4a389e
Some checks are pending
CI / Run script/clang-tidy for ESP32 IDF (push) Blocked by required conditions
CI / Run script/clang-tidy for ESP8266 (push) Blocked by required conditions
CI / Run script/ci-custom (push) Blocked by required conditions
CI / Run script/clang-tidy for ESP32 Arduino 2/4 (push) Blocked by required conditions
CI / Run script/clang-tidy for ESP32 Arduino 3/4 (push) Blocked by required conditions
CI / Run script/clang-tidy for ESP32 Arduino 4/4 (push) Blocked by required conditions
CI / list-components (push) Blocked by required conditions
CI / Create common environment (push) Waiting to run
CI / Check black (push) Blocked by required conditions
CI / Check flake8 (push) Blocked by required conditions
CI / Check pylint (push) Blocked by required conditions
CI / Check pyupgrade (push) Blocked by required conditions
CI / Run pytest (push) Blocked by required conditions
CI / Check clang-format (push) Blocked by required conditions
CI / Run script/clang-tidy for ESP32 Arduino 1/4 (push) Blocked by required conditions
CI / Component test (push) Blocked by required conditions
CI / Split components for testing into 20 groups maximum (push) Blocked by required conditions
CI / Test split components (push) Blocked by required conditions
CI / CI Status (push) Blocked by required conditions
YAML lint / yamllint (push) Waiting to run
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
48 lines
1.3 KiB
YAML
48 lines
1.3 KiB
YAML
---
|
|
name: Synchronise Device Classes from Home Assistant
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
schedule:
|
|
- cron: "45 6 * * *"
|
|
|
|
jobs:
|
|
sync:
|
|
name: Sync Device Classes
|
|
runs-on: ubuntu-latest
|
|
if: github.repository == 'esphome/esphome'
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4.1.7
|
|
|
|
- name: Checkout Home Assistant
|
|
uses: actions/checkout@v4.1.7
|
|
with:
|
|
repository: home-assistant/core
|
|
path: lib/home-assistant
|
|
|
|
- name: Setup Python
|
|
uses: actions/setup-python@v5.2.0
|
|
with:
|
|
python-version: 3.12
|
|
|
|
- name: Install Home Assistant
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install -e lib/home-assistant
|
|
|
|
- name: Sync
|
|
run: |
|
|
python ./script/sync-device_class.py
|
|
|
|
- name: Commit changes
|
|
uses: peter-evans/create-pull-request@v7.0.5
|
|
with:
|
|
commit-message: "Synchronise Device Classes from Home Assistant"
|
|
committer: esphomebot <esphome@nabucasa.com>
|
|
author: esphomebot <esphome@nabucasa.com>
|
|
branch: sync/device-classes
|
|
delete-branch: true
|
|
title: "Synchronise Device Classes from Home Assistant"
|
|
body-path: .github/PULL_REQUEST_TEMPLATE.md
|
|
token: ${{ secrets.DEVICE_CLASS_SYNC_TOKEN }}
|