Skip to content

build(deps): update pymarkdownlnt requirement from 0.9.25 to 0.9.26 in /tools in the pip group #4

build(deps): update pymarkdownlnt requirement from 0.9.25 to 0.9.26 in /tools in the pip group

build(deps): update pymarkdownlnt requirement from 0.9.25 to 0.9.26 in /tools in the pip group #4

name: Bump requirements.txt
on:
pull_request:
paths:
- 'tools/pyproject.toml'
workflow_dispatch:
permissions:
pull-requests: write
jobs:
bump_requirements:
runs-on: ubuntu-latest
steps:
- name: Checkout this repo
if: ${{ github.actor == 'dependabot[bot]' }}
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.ref }}
token: ${{ secrets.MY_GITHUB_TOKEN }}
- name: Set up Python
if: ${{ github.actor == 'dependabot[bot]' }}
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
with:
python-version: '3.12'
- name: Install Poetry
if: ${{ github.actor == 'dependabot[bot]' }}
uses: abatilo/actions-poetry@e78f54a89cb052fff327414dd9ff010b5d2b4dbd # v3.0.1
with:
poetry-version: '1.8.2'
- name: Bump Python dependencies
if: ${{ github.actor == 'dependabot[bot]' }}
run: |
cd tools
poetry update
poetry export --format requirements.txt --output requirements.txt
git config --global user.name 'dependabot[bot]'
git config --global user.email 'dependabot[bot]@users.noreply.github.com'
git add requirements.txt
if [ -z "$(git status --porcelain)" ]; then
echo 'No changes to commit on this run'
exit 0
else
git commit -m "build(deps): Bump requirements.txt"
git push
fi