Skip to content

Commit

Permalink
Always retrieve previous tag via API (#368)
Browse files Browse the repository at this point in the history
Signed-off-by: Glenn Jocher <[email protected]>
  • Loading branch information
glenn-jocher authored Jan 16, 2025
1 parent 971c219 commit cf8f408
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion actions/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@
# ├── test_summarize_pr.py
# └── ...

__version__ = "0.0.41"
__version__ = "0.0.42"
7 changes: 1 addition & 6 deletions actions/summarize_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

# Environment variables
CURRENT_TAG = os.getenv("CURRENT_TAG")
PREVIOUS_TAG = os.getenv("PREVIOUS_TAG")


def get_release_diff(repo_name: str, previous_tag: str, latest_tag: str, headers: dict) -> str:
Expand Down Expand Up @@ -165,11 +164,7 @@ def main(*args, **kwargs):
raise ValueError("One or more required environment variables are missing.")

# Get the diff between the tags
previous_tag = (
PREVIOUS_TAG
if PREVIOUS_TAG and "none" not in PREVIOUS_TAG.lower() and PREVIOUS_TAG != CURRENT_TAG
else get_previous_tag()
)
previous_tag = get_previous_tag()
diff = get_release_diff(action.repository, previous_tag, CURRENT_TAG, action.headers_diff)

# Get PRs merged between the tags
Expand Down

0 comments on commit cf8f408

Please sign in to comment.