This action automatically runs kodi-addon-checker against your addon codebase. It checks the Kodi repo for best practices and produces a report containing found problems and warnings. The action assumes you have your addon in the root path of your repository.
Required The name of the minimal kodi version your addon is supposed to support (Default "leia"
).
This is equivalent to the branch name where your addon lives in the official kodi repository (repo-plugins or repo-scripts).
optional The addon id of the addon being validated. This is used to extract the addon package using git archive
and respect your .gitattributes
. If not provided, the addon-check will allow folder id mismatching (by passing --allow-folder-id-mismatch
to the tool).
optional If the action is being run as part of a pull request validation, normally used when the action is used as a step in automated submissions (Default false
).
optional If the addon.xml should be re-written for kodi matrix - usefull if you are using the same branch to submit to two different branches (Default false
).
To use this action in your github repository you need to have your addon code in the root directory of your github repository and name your repository accordingly (e.g. plugin.video.foo). The following example performs the addon validation on each git push or pull request taking into account you plan to submit your addon to the leia
branch. The addon id is automatically extracted from your repository name.
name: Kodi Addon-Check
on: [push, pull_request]
jobs:
kodi-addon-checker:
runs-on: ubuntu-latest
name: Kodi addon checker
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Kodi addon checker validation
id: kodi-addon-checker
uses: xbmc/[email protected]
with:
kodi-version: leia
is-pr: false
addon-id: ${{ github.event.repository.name }}