File tree Expand file tree Collapse file tree 1 file changed +12
-8
lines changed
Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Original file line number Diff line number Diff line change 1- name : Parse & Compare mermeroo sources
1+ name : Parse, Compare & Merge mermeroo sources
22
33on :
44 workflow_dispatch :
55 schedule :
6- - cron : " 15 */6 * * *" # каждые 6 часов, сдвиг на 15 минут от первого
6+ - cron : " 15 */6 * * *"
77
88jobs :
9- parse-and- compare :
9+ parse-compare-merge :
1010 runs-on : ubuntu-latest
1111 permissions :
1212 contents : write
@@ -25,18 +25,22 @@ jobs:
2525 python -m pip install --upgrade pip
2626 pip install requests
2727
28- - name : Run parser ( SUB LINKS -> mermeroo_sources.txt)
28+ - name : Parse mermeroo SUB LINKS
2929 run : |
3030 python parse_mermeroo.py
3131
32- - name : Compare with Mirror sources
32+ - name : Compare with mirror sources
3333 run : |
3434 python compare_mermeroo_mirror.py
3535
36- - name : Commit & push new files
36+ - name : Merge new sources into config_sources.json
37+ run : |
38+ python merge_mermeroo_to_config_sources.py
39+
40+ - name : Commit & push changes
3741 run : |
3842 git config --global user.name "github-actions[bot]"
3943 git config --global user.email "github-actions[bot]@users.noreply.github.com"
40- git add mermeroo_sources.txt mermeroo_only_new_for_mirror.txt
41- git diff --cached --quiet || git commit -m "Update mermeroo sources and diff for Mirror "
44+ git add mermeroo_sources.txt mermeroo_only_new_for_mirror.txt config_sources.json
45+ git diff --cached --quiet || git commit -m "Update mermeroo-derived sources"
4246 git push
You can’t perform that action at this time.
0 commit comments