mirror of
https://github.com/esphome/esphome.git
synced 2024-11-05 09:16:46 +01:00
343278b291
Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v3...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
50 lines
1.3 KiB
YAML
50 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
|
|
|
|
- name: Checkout Home Assistant
|
|
uses: actions/checkout@v4
|
|
with:
|
|
repository: home-assistant/core
|
|
path: lib/home-assistant
|
|
|
|
- name: Setup Python
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: 3.11
|
|
|
|
- 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@v5
|
|
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 }}
|