From e67b2cdeb5ee135a16fbafc40a44383b29e58099 Mon Sep 17 00:00:00 2001 From: Mateusz Kulas <60038363+m-qlas@users.noreply.github.com> Date: Wed, 20 Sep 2023 14:20:30 +0200 Subject: [PATCH] Add jobs to bump version after the release (#32) Co-authored-by: Mateusz Kulas --- .github/workflows/release-build.yaml | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-build.yaml b/.github/workflows/release-build.yaml index 2ddad16..f93cd87 100644 --- a/.github/workflows/release-build.yaml +++ b/.github/workflows/release-build.yaml @@ -2,7 +2,7 @@ name: ODD Collector GCP release on: release: - types: [published] + types: [ published ] env: REGISTRY: ghcr.io @@ -35,4 +35,21 @@ jobs: context: . push: true tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} \ No newline at end of file + labels: ${{ steps.meta.outputs.labels }} + + - name: Patch package version + run: | + poetry version patch + echo "VERSION = \"$(poetry version -s)\"" > odd_collector_gcp/__version__.py + + + - name: Update repository with up-to-date and version + run: | + git config --global user.email "opendatadiscovery-bot@provectus.com" + git config --global user.name "OpenDataDiscovery Bot" + if [ -n "$(git status --porcelain)" ] + then + git add . + git commit -m "Bump package version" + git push origin main + fi