Skip to content

Merge pull request #277 from dziban303/patch #108

Merge pull request #277 from dziban303/patch

Merge pull request #277 from dziban303/patch #108

name: Create derivative databases
permissions:
contents: write # Allow action to write back changes to repository.
on:
push:
branches: ["main"]
paths:
- "plane-alert-db.csv"
- "plane-alert-twitter-blocked.csv"
- "plane-alert-ukraine.csv"
- "plane_images.csv"
- "scripts/create_db_derivatives.py"
jobs:
createDerivativeDatabases:
if: github.repository == 'sdr-enthusiasts/plane-alert-db' || ${{ vars.CREATE_DERIVATIVES }}
name: Update derivative databases
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.10"
cache: "pip"
- run: pip install -r ./scripts/requirements.txt
- name: Create category and images derivative CSV files
run: python ./scripts/create_db_derivatives.py
- name: Commit derivative CSV files
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "refactor: update derivative databases."