-
-
Notifications
You must be signed in to change notification settings - Fork 68
38 lines (37 loc) · 1.17 KB
/
auto.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
name: kodi 插件自动化
on: push
jobs:
my-job:
runs-on: ubuntu-latest
name: 打包Kodi插件并自动更新插件库
steps:
- name: 初始化环境
run: |
sudo mkdir -p /workdir
sudo chown $USER:$GROUPS /workdir
sudo apt install python
- name: 克隆代码
working-directory: /workdir
run: |
df -hT $PWD
git clone https://github.com/zhengfan2014/xbmc-kodi-private-china-addons -b py2 python2
- name: 运行python
run: |
python /workdir/python2/.github/auto.py
- name: Commit 文件
run: |
cd /workdir/python2
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add repo
git add addons.xml
git add addons.xml.md5
git commit -m "[bot] 自动打包插件并推送到存储库"
git init
- name: Push 到 Github
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: py2
repository: zhengfan2014/xbmc-kodi-private-china-addons
directory: /workdir/python2