From 0eb25424c8e415590cc972cbb958fdaf5bd24619 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edgar=20Ram=C3=ADrez-Mondrag=C3=B3n?= Date: Wed, 13 Mar 2024 13:07:57 -0600 Subject: [PATCH] WIP: Fix version bump --- .github/workflows/version_bump.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/version_bump.yml b/.github/workflows/version_bump.yml index 4a57189b0e..b054c891de 100644 --- a/.github/workflows/version_bump.yml +++ b/.github/workflows/version_bump.yml @@ -3,6 +3,11 @@ name: Version bump on: workflow_dispatch: inputs: + dry_run: + description: "Run the action without creating a PR or release draft" + required: false + type: boolean + default: false bump: description: "Version bump type" required: true @@ -57,8 +62,14 @@ jobs: github_token: ${{ secrets.MELTYBOT_GITHUB_AUTH_TOKEN }} extra_requirements: 'git+https://github.com/meltano/commitizen-version-bump@main' changelog_increment_filename: _changelog_fragment.md + commitizen_version: "3.18.1" + + - name: Add job summary + run: | + cat _changelog_fragment.md >> $GITHUB_STEP_SUMMARY - name: Draft Release + if: ${{ !github.event.inputs.dry_run }} id: draft-release uses: softprops/action-gh-release@v2 with: @@ -74,6 +85,7 @@ jobs: sudo chown -R $USER:$USER .git/objects - name: Create Pull Request + if: ${{ !github.event.inputs.dry_run }} uses: peter-evans/create-pull-request@v6 id: create-pull-request with: