2025-02-08 02:19:12 +03:00
|
|
|
name: align versions
|
2025-01-11 14:44:14 +03:00
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
paths:
|
|
|
|
- "{{cookiecutter.project_slug}}/requirements/local.txt"
|
2025-02-08 02:19:12 +03:00
|
|
|
- "{{cookiecutter.project_slug}}/compose/local/node/Dockerfile"
|
2025-01-11 14:44:14 +03:00
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: write
|
|
|
|
pull-requests: write
|
|
|
|
|
|
|
|
jobs:
|
2025-02-08 02:19:12 +03:00
|
|
|
run:
|
2025-01-11 14:44:14 +03:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
env:
|
|
|
|
GH_PAT: ${{ secrets.GH_PAT }}
|
2025-02-08 02:19:12 +03:00
|
|
|
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
script:
|
|
|
|
- scripts/ruff_version.py
|
|
|
|
- scripts/node_version.py
|
2025-01-11 14:44:14 +03:00
|
|
|
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
|
|
|
|
|
2025-02-08 02:19:12 +03:00
|
|
|
- run: uv run ${{ matrix.script }}
|
2025-01-11 14:44:14 +03:00
|
|
|
|
|
|
|
- uses: stefanzweifel/git-auto-commit-action@v5
|
|
|
|
with:
|
2025-02-08 02:19:12 +03:00
|
|
|
commit_message: Align versions
|