mirror of
https://github.com/MarshalX/telegram-crawler.git
synced 2024-11-22 15:26:43 +01:00
Add GitHub workflow
This commit is contained in:
parent
80934fecaa
commit
e405720ce6
1 changed files with 37 additions and 0 deletions
37
.github/workflows/make_tracked_links_list.yml
vendored
Normal file
37
.github/workflows/make_tracked_links_list.yml
vendored
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
name: Generate or update list of tracked links
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
make_tracked_links_file:
|
||||||
|
name: Make tracked links file
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
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.
|
||||||
|
run: |
|
||||||
|
python make_tracked_links_list.py
|
||||||
|
|
||||||
|
- name: Commit and push changes.
|
||||||
|
run: |
|
||||||
|
git checkout data
|
||||||
|
git commit -am "Update tracked links"
|
||||||
|
git push
|
Loading…
Reference in a new issue