Skip to content

build(deps): Update atsdk requirement from 0.2.23 to 0.2.24 in /packages/python/sshnpd in the pip group #50

build(deps): Update atsdk requirement from 0.2.23 to 0.2.24 in /packages/python/sshnpd in the pip group

build(deps): Update atsdk requirement from 0.2.23 to 0.2.24 in /packages/python/sshnpd in the pip group #50

name: Bump requirements.txt
on:
pull_request:
paths:
- 'packages/python/sshnpd/pyproject.toml'
workflow_dispatch:
# Declare default permissions as read only.
permissions: read-all
jobs:
bump_requirements:
runs-on: ubuntu-latest
permissions:
pull-requests: write
steps:
- name: Checkout this repo
if: ${{ github.actor == 'dependabot[bot]' }}
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
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@39cd14951b08e74b54015e9e001cdefcf80e669f # v5.1.1
with:
python-version: '3.11'
- name: Install Poetry
if: ${{ github.actor == 'dependabot[bot]' }}
uses: abatilo/actions-poetry@7b6d33e44b4f08d7021a1dee3c044e9c253d6439 # v3.0.0
with:
poetry-version: '1.8.3'
- name: Bump sshnpd Python dependencies
working-directory: packages/python/sshnpd
if: ${{ github.actor == 'dependabot[bot]' }}
run: |
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
poetry version patch
git add pyproject.toml
git commit -m "build(deps): Bump sshnpd requirements.txt and poetry version"
git push
fi