Add back guards for removal

This commit is contained in:
ludeeus
2024-09-02 06:59:39 +00:00
parent ad3db8420d
commit e57518f26a
+11 -1
View File
@@ -30,6 +30,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@v4.1.7
@@ -45,10 +46,18 @@ jobs:
id: category
run: echo "category=$(python3 -m scripts.changed.category)" >> $GITHUB_OUTPUT
- name: Check removal
id: removal
run: |
if [ "${{ steps.repository.outputs.repository }}" == "Bad data []" ]; then
echo "removal=true" >> $GITHUB_OUTPUT
fi
owner:
runs-on: ubuntu-latest
name: Owner
needs: preflight
if: needs.preflight.outputs.removal != 'true'
steps:
- name: Check out repository
uses: actions/checkout@v4.1.7
@@ -79,7 +88,7 @@ jobs:
runs-on: ubuntu-latest
name: Hassfest
needs: preflight
if: needs.preflight.outputs.category == 'integration'
if: needs.preflight.outputs.category == 'integration' && needs.preflight.outputs.removal != 'true'
steps:
- name: Check out repository
uses: actions/checkout@v4.1.7
@@ -100,6 +109,7 @@ jobs:
runs-on: ubuntu-latest
name: HACS action
needs: preflight
if: needs.preflight.outputs.removal != 'true'
steps:
- name: HACS action
uses: hacs/action@main