-
Notifications
You must be signed in to change notification settings - Fork 111
41 lines (34 loc) · 1002 Bytes
/
updater.yaml
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
name: Auto Update
on:
workflow_dispatch:
schedule:
- cron: "0 */3 * * *"
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.UPDATER }}
# otherwise, you will failed to push refs to dest repo
fetch-depth: 0
- uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Install dependencies
run: |
pip install -r ./ci/envs/requirements-updater.txt
- name: Auto Checking Update
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
python ./ci/src/updater.py ${{ secrets.DISCORD_WEBHOOK }}
- name: Merge Manifest
run: |
python ./ci/src/merge-manifest.py
- name: Commit & Push changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "auto updated plugins"
push_options: --force
branch: plugin_api_v2