Skip to content

build(deps-dev): Bump hypothesis from 6.123.2 to 6.123.4 #375

build(deps-dev): Bump hypothesis from 6.123.2 to 6.123.4

build(deps-dev): Bump hypothesis from 6.123.2 to 6.123.4 #375

---
name: Dependabot Pants Lockfile Update
on: # yamllint disable-line rule:truthy
pull_request_target:
types: [opened, synchronize]
paths:
- poetry.lock
jobs:
update-lockfiles:
name: Update Pants Lockfiles
if: github.actor == 'dependabot[bot]'
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
token: ${{ secrets.PAT_PUSH }}
- name: Set up python
id: setup-python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Set up pants
uses: pantsbuild/actions/init-pants@v9
with:
gha-cache-key: ${{ runner.os }}-pants-init-${{ hashFiles('pants.toml') }}
named-caches-hash: ${{ hashFiles('3rdparty/python/default.lock') }}
- name: Generate lockfiles
run: |
pants generate-lockfiles ::
- name: Commit and push changes
run: |
git config --global user.name 'dependabot[bot]'
git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com'
git add 3rdparty
git diff --staged --quiet || (git commit -m "[automatic] update pants lockfiles" \
&& git push origin HEAD:${{ github.event.pull_request.head.ref }})