Skip to content

Commit 18ee512

Browse files
authored
version bump test fix (#56)
1 parent 7fe5ec9 commit 18ee512

File tree

2 files changed

+17
-7
lines changed

2 files changed

+17
-7
lines changed

.bumpversion.toml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@ ignore_missing_version = false
99
ignore_missing_files = false
1010
tag = false
1111
sign_tags = false
12-
tag_name = "v{new_version}"
13-
tag_message = "Bump version: {current_version} → {new_version}"
12+
# tag_name = "v{new_version}"
13+
# tag_message = "Bump version: {current_version} → {new_version}"
1414
allow_dirty = false
1515
commit = false
1616
message = "Bump version: {current_version} → {new_version}"
17-
moveable_tags = []
18-
commit_args = ""
19-
setup_hooks = []
20-
pre_commit_hooks = []
21-
post_commit_hooks = []
17+
# moveable_tags = []
18+
# commit_args = ""
19+
# setup_hooks = []
20+
# pre_commit_hooks = []
21+
# post_commit_hooks = []
2222

2323
[[tool.bumpversion.files]]
2424
filename = "pyproject.toml"

.github/workflows/bump-version-by-labels.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ jobs:
1414
pull-requests: write
1515

1616
steps:
17+
- uses: actions/checkout@v4
18+
with:
19+
fetch-depth: 0
20+
1721
- name: Bump Version
1822
id: bump-version
1923
uses: conjikidow/bump-version@v2.0.0
@@ -23,6 +27,12 @@ jobs:
2327
label-patch: 'Patch'
2428
create-release: 'false'
2529

30+
- name: Auto-merge pull request
31+
if: steps.bump-version.outputs.version-bumped == 'true'
32+
run: gh pr merge --squash --auto "${{ github.event.pull_request.number }}"
33+
env:
34+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35+
2636
- name: Debug outputs
2737
run: |
2838
echo "version-bumped=${{ steps.bump-version.outputs.version-bumped }}"

0 commit comments

Comments
 (0)