Skip to content

Commit

Permalink
WIP: Fix version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon committed Mar 13, 2024
1 parent 2e3aff5 commit ebc6d7c
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/version_bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ name: Version bump
on:
workflow_dispatch:
inputs:
dry_run:
description: "Run the action without creating a PR or release draft"
required: true
type: boolean
bump:
description: "Version bump type"
required: true
Expand Down Expand Up @@ -57,8 +61,16 @@ 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
# TODO: Remove this constraint once the issue is fixed
# https://github.com/commitizen-tools/commitizen/issues/1024
commitizen_version: "3.18.0"

- name: Add job summary
run: |
cat _changelog_fragment.md >> $GITHUB_STEP_SUMMARY
- name: Draft Release
if: ${{ github.event.inputs.dry_run == 'false' }}
id: draft-release
uses: softprops/action-gh-release@v2
with:
Expand All @@ -74,6 +86,7 @@ jobs:
sudo chown -R $USER:$USER .git/objects
- name: Create Pull Request
if: ${{ github.event.inputs.dry_run == 'false' }}
uses: peter-evans/create-pull-request@v6
id: create-pull-request
with:
Expand Down

0 comments on commit ebc6d7c

Please sign in to comment.