Remove custom-components/uilogs (#761)

This commit is contained in:
Joakim Sørensen
2021-01-02 22:56:52 +01:00
committed by GitHub
parent 4f01159432
commit 6062561858
5 changed files with 29 additions and 11 deletions
+22 -9
View File
@@ -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"
+1
View File
@@ -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",
-1
View File
@@ -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",
+6
View File
@@ -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"
}
]
-1
View File
@@ -18,7 +18,6 @@ def get_repo():
if len(new) != 1:
print(f"Bad data {new}")
exit(1)
return new.pop()