From c563a3efd7ef6f7c4de109490c76220a7a048f30 Mon Sep 17 00:00:00 2001 From: samuelspagl Date: Wed, 6 Sep 2023 17:05:55 +0200 Subject: [PATCH] update github actions --- .github/workflows/hacs.yaml | 31 +++++++++---------------------- .github/workflows/hassfest.yaml | 3 +-- .github/workflows/release.yaml | 2 +- .github/workflows/validate.yaml | 18 ------------------ 4 files changed, 11 insertions(+), 43 deletions(-) delete mode 100644 .github/workflows/validate.yaml diff --git a/.github/workflows/hacs.yaml b/.github/workflows/hacs.yaml index a59c9a8..2c0c32d 100644 --- a/.github/workflows/hacs.yaml +++ b/.github/workflows/hacs.yaml @@ -1,29 +1,16 @@ -name: Validate HACS +name: HACS Action + on: push: pull_request: + schedule: + - cron: "0 0 * * *" jobs: - ci: - runs-on: ubuntu-latest + hacs: + name: HACS Action + runs-on: "ubuntu-latest" steps: - - uses: actions/checkout@v2 - name: Download repo - with: - fetch-depth: 0 - - - uses: actions/setup-python@v2 - name: Setup Python - with: - python-version: '3.8.x' - - - uses: actions/cache@v2 - name: Cache - with: - path: | - ~/.cache/pip - key: custom-component-ci - - name: HACS Action - uses: hacs/action@main + uses: "hacs/action@main" with: - CATEGORY: integration \ No newline at end of file + category: "integration" \ No newline at end of file diff --git a/.github/workflows/hassfest.yaml b/.github/workflows/hassfest.yaml index 2126a09..d5c521c 100644 --- a/.github/workflows/hassfest.yaml +++ b/.github/workflows/hassfest.yaml @@ -1,12 +1,11 @@ name: Validate with hassfest on: - push: pull_request: jobs: validate: runs-on: "ubuntu-latest" steps: - - uses: "actions/checkout@v2" + - uses: "actions/checkout@v3" - uses: home-assistant/actions/hassfest@master \ No newline at end of file diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index ee4c175..fb37950 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Download repo - uses: actions/checkout@v1 + uses: actions/checkout@v3 - name: Zip samsung_soundbar dir run: | diff --git a/.github/workflows/validate.yaml b/.github/workflows/validate.yaml deleted file mode 100644 index 6632c1d..0000000 --- a/.github/workflows/validate.yaml +++ /dev/null @@ -1,18 +0,0 @@ -name: Validate - -on: - push: - pull_request: - schedule: - - cron: "0 0 * * *" - workflow_dispatch: - -jobs: - validate-hacs: - runs-on: "ubuntu-latest" - steps: - - uses: "actions/checkout@v3" - - name: HACS validation - uses: "hacs/action@main" - with: - category: "integration" \ No newline at end of file