mirror of
https://github.com/alexhopeoconnor/default.git
synced 2026-10-04 02:58:10 +10:00
Remove custom-components/uilogs (#761)
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user