From fcd6c16540af4592acc6a74cf4722d6d82351ed7 Mon Sep 17 00:00:00 2001 From: Jeremy Daalder Date: Tue, 9 Jan 2024 13:10:46 +1100 Subject: [PATCH] Update addon-checker.yml --- .github/workflows/addon-checker.yml | 31 +++++++++++++++++++++-------- 1 file changed, 23 insertions(+), 8 deletions(-) diff --git a/.github/workflows/addon-checker.yml b/.github/workflows/addon-checker.yml index 361f9fc..579c8c4 100644 --- a/.github/workflows/addon-checker.yml +++ b/.github/workflows/addon-checker.yml @@ -5,14 +5,29 @@ on: [push, pull_request] jobs: kodi-addon-checker: runs-on: ubuntu-latest - name: Kodi addon checker + name: Kodi Addon-Checker steps: + - name: Checkout - uses: actions/checkout@v1 - - name: Kodi addon checker validation - id: kodi-addon-checker - uses: xbmc/action-kodi-addon-checker@v1.1 + uses: actions/checkout@v3 + with: + fetch-depth: 0 + + - name: Set up Python + uses: actions/setup-python@v2 with: - kodi-version: matrix - is-pr: false - addon-id: ${{ github.event.repository.name }} + 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 }} \ No newline at end of file