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 8d87e55
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/version_bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -55,10 +60,16 @@ jobs:
push: "false"
changelog: "true"
github_token: ${{ secrets.MELTYBOT_GITHUB_AUTH_TOKEN }}
extra_requirements: 'git+https://github.com/meltano/commitizen-version-bump@main'
extra_requirements: 'git+https://github.com/meltano/commitizen-version-bump@fix/null-author'
changelog_increment_filename: _changelog_fragment.md
commitizen_version: "3.17.2"

- name: Add job summary
run: |
cat _changelog_fragment.md >> GITHUB_JOB_SUMMARY
- name: Draft Release
if: ${{ !github.event.inputs.dry_run }}
id: draft-release
uses: softprops/action-gh-release@v2
with:
Expand All @@ -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:
Expand Down

0 comments on commit 8d87e55

Please sign in to comment.