Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .github/workflows/bump-pyproject.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Bump pyproject.toml
on:
pull_request:
paths:
- 'pyproject.toml'

permissions:
pull-requests: write

jobs:
bump_requirements:
if: ${{ github.actor == 'dependabot[bot]' }}
runs-on: ubuntu-latest

steps:
- name: Checkout this repo
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
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
with:
python-version: '3.13'

- name: Install Poetry
uses: abatilo/actions-poetry@e78f54a89cb052fff327414dd9ff010b5d2b4dbd # v3.0.1
with:
poetry-version: '1.8.2'

- name: Bump Python dependencies
run: |
git config --global user.name 'library-action[bot]'
git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com'
poetry version patch
git add pyproject.toml
git commit -m "build(deps): Bump poetry version"
git push
Loading