Update airline route data #270
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 }} |