From baddf8aef1f9d918e689a1cd0d4776c9082c5cb8 Mon Sep 17 00:00:00 2001 From: JDSanto Date: Wed, 5 Apr 2023 20:16:42 -0300 Subject: [PATCH] RFC: version GA to run on merged PRs only (#7) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: version GA to run on merged PRs * Update CHANGELOG.md Co-authored-by: martín * Update CHANGELOG.md --------- Co-authored-by: martín --- .bumpversion.cfg | 2 +- .github/workflows/version.yml | 1 + CHANGELOG.md | 7 ++++++- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.bumpversion.cfg b/.bumpversion.cfg index aa74712..7cdaee0 100644 --- a/.bumpversion.cfg +++ b/.bumpversion.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 1.4.21 +current_version = 1.4.22 commit = False tag = False diff --git a/.github/workflows/version.yml b/.github/workflows/version.yml index a4dae7e..ff10ad7 100644 --- a/.github/workflows/version.yml +++ b/.github/workflows/version.yml @@ -7,6 +7,7 @@ on: jobs: bump_version: + if: github.event.pull_request.merged == true runs-on: [self-hosted] container: image: python:3.10 diff --git a/CHANGELOG.md b/CHANGELOG.md index 1041673..a689baf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.4.22] - 2023-04-05 + +### Fixed + +- Release CI workflow now runs only on merged pull requests. + ## [1.4.21] - 2023-04-05 ### Feature @@ -16,7 +22,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Upgrade `mypy` to 1.1.1, - Use poetry 1.3.2. -- ## [1.4.20] - 2023-04-05