Skip to content

update-compose-dbs #427

update-compose-dbs

update-compose-dbs #427

name: update-compose-dbs
on:
workflow_dispatch:
schedule:
- cron: "12 11 * * *"
permissions:
contents: write
pull-requests: write
jobs:
update_compose_dbs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.13.0"
- name: Install Poetry
uses: snok/install-poetry@v1
with:
virtualenvs-create: true
virtualenvs-in-project: true
- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v4
with:
path: .venv
key: venv-${{ runner.os }}-python3.13.0-${{ hashFiles('poetry.lock') }}
- name: Install dependencies and actiavte virtualenv
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: |
poetry install --no-interaction
- name: Check update
run: |
cp .env.example .env
make update_compose_db_file
./scripts/gh_update_dbs_pr.sh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}