mirror of
https://github.com/MarshalX/telegram-crawler.git
synced 2024-11-24 08:16:34 +01:00
6ceb897e33
add generation of content tree; add workflow for tree generation; add new tg hidden link.
48 lines
1 KiB
YAML
48 lines
1 KiB
YAML
name: Generate or update list of tracked links
|
|
|
|
on:
|
|
schedule:
|
|
- cron: '0 * * * *'
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
make_tracked_links_file:
|
|
name: Make tracked links file
|
|
runs-on: macos-10.15
|
|
|
|
steps:
|
|
|
|
- name: Clone.
|
|
uses: actions/checkout@v2
|
|
with:
|
|
submodules: recursive
|
|
|
|
- name: Setup Python.
|
|
uses: actions/setup-python@v2
|
|
with:
|
|
python-version: 3.9
|
|
|
|
- name: Install dependencies.
|
|
run: |
|
|
pip install -r requirements.txt
|
|
|
|
- name: Generate/update file with links.
|
|
env:
|
|
OUTPUT_FILENAME: "tracked_links_ci.txt"
|
|
run: |
|
|
python make_tracked_links_list.py
|
|
|
|
- name: Commit and push changes.
|
|
run: |
|
|
git pull
|
|
|
|
mv tracked_links_ci.txt tracked_links.txt
|
|
|
|
git config --global user.email "github-action@users.noreply.github.com"
|
|
git config --global user.name "GitHub Action"
|
|
|
|
git add .
|
|
git commit -m "Update tracked links"
|
|
git push
|