Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: Sync data

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
schedule:
- cron: '53 5 * * *'

permissions:
contents: read

jobs:
build:

runs-on: ubuntu-latest
environment: dev

steps:
- uses: actions/checkout@v4
- name: Set up Python 3
uses: actions/setup-python@v3
with:
python-version: "3.13"
- name: Install dependencies
run: |
pip install poetry
poetry install
- name: Run
run: |
poetry run python -m sync
env:
AIRTABLE_API_KEY: ${{ secrets.AIRTABLE_API_KEY }}
2 changes: 1 addition & 1 deletion sync.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def log(message):

ctfg = api.table(bases['timCopy'], 'Listings')

def get_ctfg(from_cache=True):
def get_ctfg(from_cache=False):
log('Getting airtable records...')
cache_fp = 'cache/ctfg.pickle'
if from_cache:
Expand Down