GithubHelp home page GithubHelp logo

isabella232 / action-kodi-addon-checker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from xbmc/action-kodi-addon-checker

0.0 0.0 0.0 18 KB

A Github action to run addon checker against your kodi addon codebase

License: GNU General Public License v2.0

Shell 31.70% Python 51.37% Dockerfile 16.93%

action-kodi-addon-checker's Introduction

action-kodi-addon-checker

Kodi Logo

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.

Inputs

kodi-version

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).

addon-id

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).

is-pr

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).

rewrite-for-matrix

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).

Example usage

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 }}

action-kodi-addon-checker's People

Contributors

enen92 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.