-
Notifications
You must be signed in to change notification settings - Fork 20
35 lines (34 loc) · 1000 Bytes
/
addon-check.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# This workflow performs the required add-on checks for a submission
# to the official Kodi repository
name: Kodi
on:
# Run action when pushed to master, or for commits in a pull request.
push:
branches:
- master
pull_request:
branches:
- master
jobs:
tests:
name: Addon checker
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v4
with:
path: ${{ github.repository }}
- name: Set up Python 3.8
uses: actions/setup-python@v5
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install git+https://github.com/xbmc/addon-check.git
- name: Remove unwanted files
run: awk '/export-ignore/ { print $1 }' .gitattributes | xargs rm -rf --
working-directory: ${{ github.repository }}
- name: Run kodi-addon-checker
run: kodi-addon-checker --branch=matrix ${{ github.repository }}/