Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
terminal

GitHub Action

HACS Action

21.1.0

HACS Action

terminal

HACS Action

Repository validation action for HACS

Installation

Copy and paste the following snippet into your .yml file.

              

- name: HACS Action

uses: hacs/action@21.1.0

Learn more about this action in hacs/action

Choose a version

HACS Action

Repository validation action for HACS

Inputs

Input Description
ignore A space seperated list of ignored checks
category The type of repository (integration, plugin, theme, netdaemon, appdaemon, python_script)
comment Post the results of the cheks to the PR (true, false)

Example

name: HACS Action

on:
  push:
  pull_request:
  schedule:
    - cron: "0 0 * * *"

jobs:
  hacs:
    name: HACS Action
    runs-on: "ubuntu-latest"
    steps:
      - uses: "actions/checkout@v2"
      - name: HACS Action
        uses: "hacs/action@main"
        with:
          category: "CHANGE_ME!"

Ignorable checks

All these checks can be disabled with with.ignore:

Check More info Description
archived More info Checks if the repository is archived
brands More info Checks if the domain is added to the brands repo
description More info Checks if the repository has a description
hacs More info Loads the repository with HACS
hacsjson More info Checks that hacs.json exists
images More info Checks that the info file has images
information More info Checks that the repo has an information file
issues More info Checks that issues are enabled
requirements Checks that the integration does not import builtin python packages
topics More info Checks that the repository has topics
wheels More info Checks if the domain is added to the custom wheels repo

Versions

To use a specific version of this action instead of main set the value after @ in the uses definition, like:

uses: hacs/action@xx.xx.x

If you do this, please enable dependabot to help you keep that up to date.