Remove removal from checks workflow

This commit is contained in:
ludeeus
2024-08-27 16:49:32 +00:00
parent ef94c43fe9
commit 587aeaaa5d
+3 -16
View File
@@ -10,13 +10,10 @@ on:
- master - master
paths: paths:
- appdaemon - appdaemon
- blacklist
- critical
- integration - integration
- netdaemon - netdaemon
- plugin - plugin
- python_script - python_script
- removed
- template - template
- theme - theme
@@ -24,14 +21,15 @@ concurrency:
group: checks-${{ github.ref }} group: checks-${{ github.ref }}
cancel-in-progress: true cancel-in-progress: true
permissions: {}
jobs: jobs:
preflight: preflight:
runs-on: ubuntu-latest runs-on: ubuntu-latest
name: Initialize name: Preflight
outputs: outputs:
repository: ${{ steps.repository.outputs.repository }} repository: ${{ steps.repository.outputs.repository }}
category: ${{ steps.category.outputs.category }} category: ${{ steps.category.outputs.category }}
removal: ${{ steps.removal.outputs.removal }}
steps: steps:
- name: Check out repository - name: Check out repository
uses: actions/checkout@v4.1.7 uses: actions/checkout@v4.1.7
@@ -43,15 +41,7 @@ jobs:
id: repository id: repository
run: echo "repository=$(python3 -m scripts.changed.repo)" >> $GITHUB_OUTPUT run: echo "repository=$(python3 -m scripts.changed.repo)" >> $GITHUB_OUTPUT
- name: Check removal
id: removal
run: |
if [ "${{ steps.repository.outputs.repository }}" == "Bad data []" ]; then
echo "removal=true" >> $GITHUB_OUTPUT
fi
- name: Set category - name: Set category
if: steps.removal.outputs.removal != 'true'
id: category id: category
run: echo "category=$(python3 -m scripts.changed.category)" >> $GITHUB_OUTPUT run: echo "category=$(python3 -m scripts.changed.category)" >> $GITHUB_OUTPUT
@@ -60,7 +50,6 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
name: Check Owner name: Check Owner
needs: preflight needs: preflight
if: needs.preflight.outputs.removal != 'true'
steps: steps:
- name: Check out repository - name: Check out repository
uses: actions/checkout@v4.1.7 uses: actions/checkout@v4.1.7
@@ -98,7 +87,6 @@ jobs:
uses: actions/checkout@v4.1.7 uses: actions/checkout@v4.1.7
- name: Clone new addition - name: Clone new addition
if: steps.removal.outputs.removal != 'true'
run: | run: |
git clone --depth 1 "https://github.com/${{needs.preflight.outputs.repository}}" /tmp/repositories/addition git clone --depth 1 "https://github.com/${{needs.preflight.outputs.repository}}" /tmp/repositories/addition
@@ -125,7 +113,6 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
name: "Run HACS Action" name: "Run HACS Action"
needs: preflight needs: preflight
if: needs.preflight.outputs.removal != 'true'
steps: steps:
- name: HACS action - name: HACS action
uses: "hacs/action@main" uses: "hacs/action@main"