telegram-crawler/.github/workflows/make_tracked_links_list.yml
2021-04-23 21:01:32 +02:00

43 lines
938 B
YAML

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: |
echo "" > tracked_links.txt
# python make_tracked_links_list.py
- name: Commit and push changes.
run: |
git fetch
git checkout data
git config --global user.email "actions@github.com"
git config --global user.name "github-actions"
git commit -am "Update tracked links"
git push