From 59e4815fbf26056bf8435fea548acf0660ce2ca7 Mon Sep 17 00:00:00 2001 From: Oliver Cullimore Date: Sat, 16 Sep 2023 18:48:05 +0100 Subject: [PATCH 1/2] Update pyproject.toml version --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 3272013368..1178fc213d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "uk_bin_collection" -version = "0.9.0" +version = "0.10.0" description = "Python Lib to collect UK Bin Data" readme = "README.md" authors = ["Robert Bradley "] From e7d58501494eb9eeb3eaf5e55e28ba6e5c24786f Mon Sep 17 00:00:00 2001 From: Oliver Cullimore Date: Sat, 16 Sep 2023 18:50:59 +0100 Subject: [PATCH 2/2] Update release.yml to auto-update pyproject.toml version for PyPi and create a PR to update the repository to match --- .github/workflows/release.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cedbbfacc3..950aa8a7f7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -32,9 +32,16 @@ jobs: id: tag run: echo ::set-output name=TAG_NAME::$(echo $GITHUB_REF | cut -d / -f 3) - - name: Update version in pyproject.toml + - name: Update pyproject.toml version run: | - sed -i "s/version = "0.1.0"/version = "${{ steps.tag.outputs.TAG_NAME }}"/g" pyproject.toml + sed -i -E 's/version = \"([0-9.]+)\"/version = "${{ steps.tag.outputs.TAG_NAME }}"/g' pyproject.toml + + - name: Create Pull Request + uses: peter-evans/create-pull-request@v5 + with: + commit-message: Update pyproject.toml version + title: Update pyproject.toml version + continue-on-error: true - name: Build and publish package run: |