From e405720ce697d91f364b4c984d7d7f77dde949cb Mon Sep 17 00:00:00 2001 From: "Il'ya (Marshal)" Date: Fri, 23 Apr 2021 20:39:08 +0200 Subject: [PATCH] Add GitHub workflow --- .github/workflows/make_tracked_links_list.yml | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/make_tracked_links_list.yml diff --git a/.github/workflows/make_tracked_links_list.yml b/.github/workflows/make_tracked_links_list.yml new file mode 100644 index 0000000000..3509b2cc9a --- /dev/null +++ b/.github/workflows/make_tracked_links_list.yml @@ -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