Update Vendor Sources #130
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: Update Vendor Sources | |
on: | |
schedule: | |
- cron: '42 6 * * 2' | |
workflow_dispatch: | |
env: | |
MINIMUM_PYTHON_VERSION: "3.8" | |
jobs: | |
sync: | |
name: Update Vendor Sources | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.head_ref }} | |
- name: Install Python ${{ env.MINIMUM_PYTHON_VERSION }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.x' | |
- name: Install pre-commit and dev dependencies | |
run: | | |
python -m pip install pre-commit poetry | |
pre-commit install | |
poetry install | |
- name: Update Vendor Sources | |
run: poetry run python ./scripts/update_vendor.py | |
- name: Run black | |
run: poetry run black . | |
- name: Run pre-commit | |
run: pre-commit run -a | |
continue-on-error: true | |
- uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: Automated vendor update |