2021-04-24 14:19:01 +02:00
|
|
|
name: Fetch new content of tracked links to files
|
|
|
|
|
|
|
|
on:
|
|
|
|
schedule:
|
2021-04-24 15:01:41 +02:00
|
|
|
- cron: '* * * * * '
|
2021-04-24 14:19:01 +02:00
|
|
|
push:
|
|
|
|
branches:
|
2021-04-24 14:28:06 +02:00
|
|
|
- main
|
2021-04-24 14:19:01 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
make_tracked_links_file:
|
|
|
|
name: Make files tree
|
|
|
|
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 files tree.
|
|
|
|
env:
|
|
|
|
OUTPUT_FOLDER: "data_ci/"
|
|
|
|
run: |
|
2021-04-24 22:46:32 +02:00
|
|
|
git pull
|
2021-04-24 14:19:01 +02:00
|
|
|
python make_files_tree.py
|
|
|
|
|
|
|
|
- name: Commit and push changes.
|
|
|
|
run: |
|
|
|
|
git checkout data
|
|
|
|
|
|
|
|
rm -rf data
|
|
|
|
mv data_ci data
|
|
|
|
|
|
|
|
git config --global user.email "github-action@users.noreply.github.com"
|
|
|
|
git config --global user.name "GitHub Action"
|
|
|
|
|
|
|
|
git add .
|
2021-04-24 14:38:39 +02:00
|
|
|
git commit -m "Update content of files"
|
2021-04-24 14:19:01 +02:00
|
|
|
git push
|