Skip to content

Commit

Permalink
chore: Use Melty token to create version bump PR (#1958)
Browse files Browse the repository at this point in the history
* chore: Use Melty token to create version bump PR

* Update prerelease settings

* Use Melty token to draft release
  • Loading branch information
edgarrmondragon authored Sep 13, 2023
1 parent d817e96 commit 807e28a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/version_bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,7 @@ jobs:
body_path: _changelog_fragment.md
tag_name: v${{ steps.cz-bump.outputs.version }}
prerelease: ${{ github.event.inputs.prerelease != 'none' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.MELTYBOT_GITHUB_AUTH_TOKEN }}

- name: Set repo file permissions
run: |
Expand All @@ -77,6 +76,7 @@ jobs:
uses: peter-evans/create-pull-request@v5
id: create-pull-request
with:
token: ${{ secrets.MELTYBOT_GITHUB_AUTH_TOKEN }}
commit-message: "chore: Bump package version"
title: "chore: Release v${{ steps.cz-bump.outputs.version }}"
body: |
Expand Down
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,8 @@ norecursedirs = "cookiecutter"
[tool.commitizen]
name = "cz_version_bump"
version = "0.31.1"
changelog_merge_prerelease = true
prerelease_offset = 1
tag_format = "v$major.$minor.$patch$prerelease"
version_files = [
"docs/conf.py:^release =",
Expand Down

0 comments on commit 807e28a

Please sign in to comment.