Skip to content

4.13.0

4.13.0 #8

Workflow file for this run

name: Update Version Number
on:
release:
types: [published]
jobs:
update-version-number:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4
with:
fetch-depth: 0
- name: Update Version Number
run: |
OLD_VERSION=`cat pyproject.toml | grep ^version | cut -d '"' -f 2`
OLD_VERSION="\"$OLD_VERSION\""
NEW_VERSION="\"$GITHUB_REF_NAME\""
sed -i "s+version = $OLD_VERSION+version = $NEW_VERSION+g" pyproject.toml
- name: Commit Changes
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
git commit -a -m "Update version number to new_version"
git push origin HEAD:main