mirror of
https://github.com/home-assistant/frontend.git
synced 2026-08-13 08:32:32 +01:00
2f6c1388e8
Bumps [actions/checkout](https://github.com/actions/checkout) from 7.0.0 to 7.0.1. - [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/9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0...3d3c42e5aac5ba805825da76410c181273ba90b1) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: 7.0.1 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
48 lines
1.4 KiB
YAML
48 lines
1.4 KiB
YAML
name: Sync numeric device classes
|
|
|
|
# Mirrors Home Assistant Core's numeric `SensorDeviceClass` list into the
|
|
# build-time default in src/data/sensor_numeric_device_classes.ts and opens a PR
|
|
# when it drifts. Reads homeassistant/generated/sensor.json from core.
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
schedule:
|
|
- cron: "0 4 * * *" # Daily, 04:00 UTC
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
sync:
|
|
name: Sync
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: write
|
|
pull-requests: write
|
|
steps:
|
|
- name: Checkout the repository
|
|
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: Setup Node and install
|
|
uses: ./.github/actions/setup
|
|
|
|
- name: Regenerate numeric device classes
|
|
run: ./script/gen_numeric_device_classes
|
|
|
|
- name: Format
|
|
run: yarn prettier --write src/data/sensor_numeric_device_classes.ts
|
|
|
|
- name: Create pull request
|
|
uses: peter-evans/create-pull-request@5f6978faf089d4d20b00c7766989d076bb2fc7f1 # v8.1.1
|
|
with:
|
|
branch: chore/sync-numeric-device-classes
|
|
commit-message: Update numeric sensor device classes
|
|
title: Update numeric sensor device classes
|
|
body: |
|
|
Regenerated `SENSOR_NUMERIC_DEVICE_CLASSES` from Home Assistant Core's
|
|
`SensorDeviceClass`.
|
|
|
|
Automated by `.github/workflows/sync-numeric-device-classes.yaml`.
|