Skip to content

Update airline route data #262

Update airline route data

Update airline route data #262

Workflow file for this run

name: Update airline route data
on:
schedule:
- cron: '0 0 * * 0'
workflow_dispatch:
jobs:
scrape-and-commit:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
persist-credentials: false
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: Scrape and commit
run: |
uv run --python 3.10 --with-requirements requirements.txt -- python -u scrape_airline_routes.py
git config --global user.email "bot@jonty.co.uk"
git config --global user.name "Airline Route Update GHA"
git add airline_routes.json
git commit -m "Automatic airline route update"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}