Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Fix version bump #2314

Merged
merged 1 commit into from
Mar 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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