chore(deps): bump actions/add-to-project from 0.6.1 to 1.0.0 #7353
Workflow file for this run
This file contains 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: '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 |