diff --git a/.github/workflows/cron.yml b/.github/workflows/cron.yml deleted file mode 100644 index 8d51d0f..0000000 --- a/.github/workflows/cron.yml +++ /dev/null @@ -1,21 +0,0 @@ -name: Cron actions - -on: - schedule: - - cron: '0 0 * * *' - -jobs: - validate: - runs-on: "ubuntu-latest" - name: Validate - steps: - - uses: "actions/checkout@v2" - - - name: HACS validation - uses: "hacs/action@main" - with: - category: "integration" - ignore: brands - - - name: Hassfest validation - uses: "home-assistant/actions/hassfest@master" \ No newline at end of file diff --git a/.github/workflows/pull.yml b/.github/workflows/pull.yml deleted file mode 100644 index 4eedda8..0000000 --- a/.github/workflows/pull.yml +++ /dev/null @@ -1,31 +0,0 @@ -name: Pull actions - -on: - pull_request: - -jobs: - validate: - runs-on: "ubuntu-latest" - name: Validate - steps: - - uses: "actions/checkout@v2" - - - name: HACS validation - uses: "hacs/action@main" - with: - category: "integration" - ignore: brands - - - name: Hassfest validation - uses: "home-assistant/actions/hassfest@master" - - style: - runs-on: "ubuntu-latest" - name: Check style formatting - steps: - - uses: "actions/checkout@v2" - - uses: "actions/setup-python@v1" - with: - python-version: "3.x" - - run: python3 -m pip install black - - run: black . diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml deleted file mode 100644 index 4c0c391..0000000 --- a/.github/workflows/push.yml +++ /dev/null @@ -1,33 +0,0 @@ -name: Push actions - -on: - push: - branches: - - main - -jobs: - validate: - runs-on: "ubuntu-latest" - name: Validate - steps: - - uses: "actions/checkout@v2" - - - name: HACS validation - uses: "hacs/action@main" - with: - category: "integration" - ignore: brands - - - name: Hassfest validation - uses: "home-assistant/actions/hassfest@master" - - style: - runs-on: "ubuntu-latest" - name: Check style formatting - steps: - - uses: "actions/checkout@v2" - - uses: "actions/setup-python@v1" - with: - python-version: "3.x" - - run: python3 -m pip install black - - run: black . diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml new file mode 100644 index 0000000..11d80e3 --- /dev/null +++ b/.github/workflows/validate.yml @@ -0,0 +1,38 @@ +name: "Validate" + +on: + workflow_dispatch: + schedule: + - cron: '0 0 * * *' + push: + branches: + - "main" + pull_request: + branches: + - "main" + +jobs: + hassfest: + name: "HACS Validation" + runs-on: "ubuntu-latest" + steps: + - name: "Checkout the repository" + uses: "actions/checkout@v3" + + - name: "Run hassfest validation" + uses: "home-assistant/actions/hassfest@master" + + hacs: + name: "HACS Validation" + runs-on: "ubuntu-latest" + steps: + - name: "Checkout the repository" + uses: "actions/checkout@v3" + + - name: "Run HACS validation" + uses: "hacs/action@main" + with: + category: "integration" + ignore: "brands" + +