Skip to content

.github/workflows/update.yml #2723

.github/workflows/update.yml

.github/workflows/update.yml #2723

Workflow file for this run

name: Extract JSON data
on:
schedule:
- cron: '0 * * * *' # Run every hour
jobs:
cache-urls:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Cache dependencies
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Extract data
run: python cache_url.py cache_info.json
env:
INPUT_FILE: cache_info.json