Skip to content

fix: Typo in 714c119 using f-string (follow-up of follow-up of #1938) #7111

fix: Typo in 714c119 using f-string (follow-up of follow-up of #1938)

fix: Typo in 714c119 using f-string (follow-up of follow-up of #1938) #7111

name: 'alembic-check'
on:
pull_request:
types: [labeled, unlabeled, opened, synchronize, reopened]
merge_group:
jobs:
check-multiple-heads:
if: ${{ contains(github.event.pull_request.labels.*.name, 'require:db-migration') && github.event.pull_request.merged == false }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 2
- name: Parse versions from config
run: |
PYTHON_VERSION=$(grep -m 1 -oP '(?<=CPython==)([^"]+)' pants.toml)
echo "PROJECT_PYTHON_VERSION=$PYTHON_VERSION" >> $GITHUB_ENV
- name: Set up Python as Runtime
uses: actions/setup-python@v5
with:
python-version: ${{ env.PROJECT_PYTHON_VERSION }}
- name: Check for multiple heads
run: python scripts/check-multiple-alembic-heads.py