Skip to content

chore(deps): bump the python group with 3 updates #251

chore(deps): bump the python group with 3 updates

chore(deps): bump the python group with 3 updates #251

---
name: Update Doc Version
# yamllint disable-line rule:truthy
on:
# this is the trigger that really does the work
push:
tags:
- v*
# pull_request is only here to check the behaviour without needing to merge
# all the time
pull_request:
branches:
- main
jobs:
readme-versions:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Git User
uses: fregante/setup-git-user@v2
# we use ourself to get the information for the release
- name: Get Change Info
uses: chizovation/[email protected]
id: get-changelog-info
- name: Prepare Python
uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Bumpversion deps
shell: bash
run: |
pip install --no-cache-dir -U pip
pip install --no-cache-dir bumpversion
- name: Run Bumpversion
shell: bash
# yamllint disable rule:line-length
run: |
# some files are the version without the v, so we do actually need to
# use outputs.last-change-version here
export current_version="${{ steps.get-changelog-info.outputs.last-change-version }}"
bumpversion --verbose \
--allow-dirty \
--no-commit \
--no-tag \
--message "chore: update version in files (${current_version})\n\n[skip ci]" \
--new-version "${current_version}" \
patch
# yamllint enable rule:line-length
- name: Debug Commits and Current Branch
run: |
echo "Commits:"
echo "===================="
git log --oneline --decorate --graph -n 10
echo "Current Branch:"
echo "===================="
git branch --show-current
echo "Default Branch:"
echo "===================="
echo "${{ github.event.repository.default_branch }}"
echo "last-change-version"
echo "===================="
echo "${{ steps.get-changelog-info.outputs.last-change-version }}"
echo "git diff"
echo "===================="
git diff
- name: Create Pull Request
id: create-pr
uses: peter-evans/create-pull-request@v6
if: startsWith(github.ref, 'refs/tags/v')
with:
# yamllint disable rule:line-length
title: 'chore: update version in files (${{ steps.get-changelog-info.outputs.last-change-version}})'
commit-message: "chore: update version in files (${{ steps.get-changelog-info.outputs.last-change-version}})\n\n[skip ci]"
base: ${{ github.event.repository.default_branch }}
delete-branch: true
token: ${{ secrets.CHANGESETS_TOKEN }}
# yamllint enable rule:line-length
- uses: peter-evans/enable-pull-request-automerge@v3
if: startsWith(github.ref, 'refs/tags/v')
with:
# yamllint disable rule:line-length
token: ${{ secrets.CHANGESETS_TOKEN }}
pull-request-number: ${{ steps.create-pr.outputs.pull-request-number }}
# yamllint enable rule:line-length