From 88a082ea9d9f802e9807b7e2f91b64e6047d1d32 Mon Sep 17 00:00:00 2001 From: ludeeus Date: Sat, 11 Feb 2023 19:40:30 +0000 Subject: [PATCH] Adjust actions --- .github/workflows/cron.yml | 21 ------------------- .github/workflows/pull.yml | 31 --------------------------- .github/workflows/push.yml | 33 ----------------------------- .github/workflows/validate.yml | 38 ++++++++++++++++++++++++++++++++++ 4 files changed, 38 insertions(+), 85 deletions(-) delete mode 100644 .github/workflows/cron.yml delete mode 100644 .github/workflows/pull.yml delete mode 100644 .github/workflows/push.yml create mode 100644 .github/workflows/validate.yml 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" + +