From 6062561858361075a7c1bfe8258ed59c134d403f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20S=C3=B8rensen?= Date: Sat, 2 Jan 2021 22:56:52 +0100 Subject: [PATCH] Remove custom-components/uilogs (#761) --- .github/workflows/checks.yml | 31 ++++++++++++++++++++++--------- blacklist | 1 + integration | 1 - removed | 6 ++++++ scripts/changed/repo.py | 1 - 5 files changed, 29 insertions(+), 11 deletions(-) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 1ceb71d..5e5e08e 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -11,6 +11,7 @@ jobs: outputs: repository: ${{ steps.repository.outputs.repository }} category: ${{ steps.category.outputs.category }} + removal: ${{ steps.removal.outputs.removal }} steps: - name: Check out repository uses: actions/checkout@v2 @@ -18,20 +19,30 @@ jobs: - name: Clone origin run: git clone --depth 1 https://github.com/hacs/default /tmp/repositories/default - - name: Clone new addition - run: | - repo=$(python3 -m scripts.changed.repo) - git clone --depth 1 "https://github.com/$repo" /tmp/repositories/addition - - - name: Set category - id: category - run: echo "::set-output name=category::$(python3 -m scripts.changed.category)" - - name: Set repository id: repository run: echo "::set-output name=repository::$(python3 -m scripts.changed.repo)" + - name: Check removal + id: removal + run: | + if [ "${{ steps.repository.outputs.repository }}" == "Bad data []" ]; then + echo "::set-output name=removal::true" + fi + + - name: Set category + if: steps.removal.outputs.removal != 'true' + id: category + run: echo "::set-output name=category::$(python3 -m scripts.changed.category)" + + - name: Clone new addition + if: steps.removal.outputs.removal != 'true' + run: | + repo=$(python3 -m scripts.changed.repo) + git clone --depth 1 "https://github.com/$repo" /tmp/repositories/addition + - name: Upload shared artifacts + if: steps.removal.outputs.removal != 'true' uses: actions/upload-artifact@master with: name: repositories @@ -41,6 +52,7 @@ jobs: runs-on: ubuntu-latest name: Check Owner needs: preflight + if: needs.preflight.outputs.removal != 'true' steps: - name: Check out repository uses: actions/checkout@v2 @@ -101,6 +113,7 @@ jobs: runs-on: ubuntu-latest name: "Run HACS Action" needs: preflight + if: needs.preflight.outputs.removal != 'true' steps: - name: HACS action uses: "hacs/action@main" diff --git a/blacklist b/blacklist index 8dafe3a..586b086 100644 --- a/blacklist +++ b/blacklist @@ -52,6 +52,7 @@ "custom-components/sensor.wifi-scanner", "custom-components/sickchill", "custom-components/switch.hadockermon", + "custom-components/uilogs", "custom-components/usps_mail", "eifinger/here_travel_time", "enriqg9/dual-thermostat", diff --git a/integration b/integration index 4378ed5..a849a70 100644 --- a/integration +++ b/integration @@ -120,7 +120,6 @@ "custom-components/srp_energy", "custom-components/sytadin", "custom-components/templatesensor", - "custom-components/uilogs", "custom-components/unsplash", "custom-components/ups", "custom-components/weatheralerts", diff --git a/removed b/removed index 1c8cfb5..ce9fd51 100644 --- a/removed +++ b/removed @@ -405,5 +405,11 @@ "reason": "NWS radar server no longer operational", "removal_type": "removal", "link": "https://github.com/MatthewFlamm/nwsradar/issues/16" + }, + { + "repository": "custom-components/uilogs", + "reason": "Deprecated", + "removal_type": "remove", + "link": "https://github.com/custom-components/uilogs/issues/17" } ] \ No newline at end of file diff --git a/scripts/changed/repo.py b/scripts/changed/repo.py index 29a228c..7133186 100644 --- a/scripts/changed/repo.py +++ b/scripts/changed/repo.py @@ -18,7 +18,6 @@ def get_repo(): if len(new) != 1: print(f"Bad data {new}") - exit(1) return new.pop()