-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (63 loc) · 2.23 KB
/
ci.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: CI
# Controls when the action will run.
on:
push:
workflow_dispatch:
branches:
- master
jobs:
# Check the plugin with kodi-addon-checker
kodi-addon-checker:
name: Kodi-addon-checker
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Run kodi-addon-checker
run: |
pip install kodi-addon-checker
kodi-addon-checker --branch krypton --allow-folder-id-mismatch ./resource.images.catchuptvandmore
# Update repository.catchuptvandmore
update-repo:
name: Update repository.catchuptvandmore
needs: kodi-addon-checker
runs-on: ubuntu-latest
steps:
- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Update all repositories
run: |
pip install gitpython
git clone https://github.com/Catch-up-TV-and-More/repository.catchuptvandmore repo
cd repo
git config --global user.name 'GitHub Actions'
git config --global user.email '[email protected]'
git remote set-url origin https://x-access-token:${{ secrets.REPO_TOKEN }}@github.com/Catch-up-TV-and-More/repository.catchuptvandmore.git
./update_all_repos.sh
# Prepare and create addon submission pull request to official Kodi repo
kodi-addon-submitter:
runs-on: ubuntu-latest
name: Kodi addon submitter
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Generate distribution zip and submit to official kodi repository
id: kodi-addon-submitter
# https://github.com/xbmc/kodi-addon-submitter
uses: xbmc/[email protected]
with:
kodi-repository: repo-resources
kodi-version: krypton
addon-id: resource.images.catchuptvandmore
kodi-matrix: false
sub-directory: true
env:
GH_USERNAME: ${{ github.actor }}
# https://docs.github.com/en/[email protected]/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token
GH_TOKEN: ${{ secrets.REPO_TOKEN }}
EMAIL: ${{ secrets.EMAIL }}