-
Notifications
You must be signed in to change notification settings - Fork 1
35 lines (34 loc) · 1.03 KB
/
refresh_data.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: refresh-data
on:
workflow_dispatch: # allows manual triggering
schedule:
- cron: '16 6 * * 1' # runs every Monday at 6:16
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python 3.10
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Download latest F-Droid data
run: |
curl -O "https://f-droid.org/repo/index-v2.json"
- name: Initialize python env
run: |
python -m pip install --upgrade pip
pip install requests pandas pygithub python-gitlab
- name: Create new export
run: |
python fdroid_data_exporter.py
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITLAB_TOKEN: ${{ secrets.GITLAB_TOKEN }}
- name: Create new template
run: |
python fdroid_html_builder.py
- name: Pull Remote Changes
run: git pull
- uses: stefanzweifel/git-auto-commit-action@v4