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

[Internal] Fix tagging workflow to identify last release properly #4437

Merged
merged 8 commits into from
Jan 27, 2025
Merged
Show file tree
Hide file tree
Changes from 3 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
2 changes: 1 addition & 1 deletion .release_metadata.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"timestamp": "2025-01-16 13:55:53"
"timestamp": "2025-01-27 14:59:20"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we put a timezone to avoid ambiguity?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added

}
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# Version changelog

## Release v1.64.1

### Documentation

* Fix attribute name in `databricks_instance_profile` examples ([#4426](https://github.com/databricks/terraform-provider-databricks/pull/4426)).

### Internal Changes

* Started to use the new release framework for releases of the Terraform provider.


## [Release] Release v1.64.0

### New Features and Improvements
Expand Down
5 changes: 2 additions & 3 deletions NEXT_CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
# NEXT CHANGELOG

## Release v1.64.1
## Release v1.65.0

### New Features and Improvements

### Bug Fixes

### Documentation

* Fix attribute name in `databricks_instance_profile` examples ([#4426](https://github.com/databricks/terraform-provider-databricks/pull/4426)).
#4426](https://github.com/databricks/terraform-provider-databricks/pull/4426)).

### Exporter

### Internal Changes

* Started to use the new release framework for releases of the Terraform provider.
2 changes: 1 addition & 1 deletion common/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package common
import "context"

var (
version = "1.64.0"
version = "1.64.1"
// ResourceName is resource name without databricks_ prefix
ResourceName contextKey = 1
// Provider is the current instance of provider
Expand Down
4 changes: 2 additions & 2 deletions tagging.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,14 +160,14 @@ def get_previous_tag_info(package: Package) -> Optional[TagInfo]:
changelog = f.read()

# Extract the latest release section using regex
match = re.search(r"## Release v[\d\.]+.*?(?=\n## (\[Release\] )?Release v|\Z)", changelog, re.S)
match = re.search(r"## \[Release\] Release v[\d\.]+.*?(?=\n## (\[Release\] )?Release v|\Z)", changelog, re.S)

# E.g., for new packages.
if not match:
return None

latest_release = match.group(0)
version_match = re.search(r'## Release v(\d+\.\d+\.\d+)', latest_release)
version_match = re.search(r'## \[Release\] Release v(\d+\.\d+\.\d+)', latest_release)

if not version_match:
raise Exception("Version not found in the changelog")
Expand Down