Skip to content

Commit b0b7f09

Browse files
authored
Update parse_and_compare_mermeroo.yml
Signed-off-by: саня <109840177+kort0881@users.noreply.github.com>
1 parent 619e83c commit b0b7f09

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

.github/workflows/parse_and_compare_mermeroo.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
name: Parse & Compare mermeroo sources
1+
name: Parse, Compare & Merge mermeroo sources
22

33
on:
44
workflow_dispatch:
55
schedule:
6-
- cron: "15 */6 * * *" # каждые 6 часов, сдвиг на 15 минут от первого
6+
- cron: "15 */6 * * *"
77

88
jobs:
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

0 commit comments

Comments
 (0)