mirror of
https://github.com/alexhopeoconnor/default.git
synced 2026-10-04 02:58:10 +10:00
Add back guards for removal
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user