Skip to content

Commit

Permalink
Fixed dev versioning config
Browse files Browse the repository at this point in the history
  • Loading branch information
coordt committed Nov 4, 2023
1 parent 0b1d28a commit 6299c11
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .changelog-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ valid_author_tokens:

# Rules applied to commits to determine the type of release to suggest.
release_hint_rules:
- match_result: release-candidate
- match_result: dev
branch: ^((?!master|main).)*$
- match_result: patch
path: requirements/prod.in
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/bumpversion.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ jobs:
BUMPVERSION_NEW_VERSION: ${{ inputs.tags }}
BUMPVERSION_VERBOSE: ${{ inputs.verbose }}
run: |
PR_NUMBER=$(gh pr view --json number -q .number || echo "")
REVISION=$(git describe --tags --long | awk -F- '{print $2}')
export PR_NUMBER REVISION
case "$RELEASE_KIND" in
major|minor|patch)
bump-my-version bump "$RELEASE_KIND"
Expand All @@ -81,10 +84,8 @@ jobs:
git push --tags
fi
;;
release-candidate)
PR_NUMBER=$(gh pr view --json number -q .number || echo "")
REVISION=$(git describe --tags --long | awk -F- '{print $2}')
bump-my-version bump -v --no-tag --no-commit "release_candidate"
dev)
bump-my-version bump -v --no-tag --no-commit "dev"
python -m build
;;
esac
Expand Down

0 comments on commit 6299c11

Please sign in to comment.