Skip to content

Commit

Permalink
Merge pull request #332 from OliverCullimore/329-fix-bolton-council
Browse files Browse the repository at this point in the history
Update pyproject.toml and release action
  • Loading branch information
OliverCullimore authored Sep 16, 2023
2 parents f782184 + e7d5850 commit 2ea235c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>"]
Expand Down

0 comments on commit 2ea235c

Please sign in to comment.