diff --git a/.github/workflows/addon-checker.yml b/.github/workflows/addon-checker.yml new file mode 100644 index 00000000..65ad43b7 --- /dev/null +++ b/.github/workflows/addon-checker.yml @@ -0,0 +1,38 @@ +name: Kodi Addon-Checker + +on: [pull_request] + +jobs: + kodi-addon-checker: + runs-on: ubuntu-latest + name: Kodi Addon-Checker + steps: + + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.x' + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip3 install --user kodi-addon-checker + + - name: Extract job variables + shell: bash + + run: | + echo "addon=$(git diff --diff-filter=d --name-only HEAD~ | grep / +| cut -d / -f1 | sort | uniq)" >> $GITHUB_OUTPUT + id: extract_vars + + - name: Addon-Check + run: $HOME/.local/bin/kodi-addon-checker --branch=${{ +github.event.pull_request.base.ref }} --PR ${{ +steps.extract_vars.outputs.addon }} +