cookiecutter-django/.github/workflows/align-versions.yml

46 lines
1018 B
YAML
Raw Normal View History

name: align versions
on:
pull_request:
paths:
- "{{cookiecutter.project_slug}}/requirements/local.txt"
- "{{cookiecutter.project_slug}}/compose/local/node/Dockerfile"
permissions:
contents: write
pull-requests: write
jobs:
run:
runs-on: ubuntu-latest
env:
GH_PAT: ${{ secrets.GH_PAT }}
strategy:
fail-fast: false
matrix:
script:
- scripts/ruff_version.py
- scripts/node_version.py
steps:
- name: Checkout with token
uses: actions/checkout@v4
if: ${{ env.GH_PAT != '' }}
with:
token: ${{ env.GH_PAT }}
ref: ${{ github.head_ref }}
- name: Checkout without token
uses: actions/checkout@v4
if: ${{ env.GH_PAT == '' }}
with:
ref: ${{ github.head_ref }}
- uses: astral-sh/setup-uv@v5
- run: uv run ${{ matrix.script }}
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Align versions