Skip to content

chore(ci): Add check to Python release to verify workflow is running on expected tag - #2912

Open
dannycjones wants to merge 1 commit into
apache:mainfrom
dannycjones:fix-py-release
Open

chore(ci): Add check to Python release to verify workflow is running on expected tag#2912
dannycjones wants to merge 1 commit into
apache:mainfrom
dannycjones:fix-py-release

Conversation

@dannycjones

Copy link
Copy Markdown
Contributor

Which issue does this PR close?

Addresses issue where pyiceberg-core was released from main rather than the release branch.
The change should prevent this scenario from recurring.

What changes are included in this PR?

The code will checkout the ref it was executed with, and this change asserts that we're on a tagged commit.

It may be worth removing the input version argument and simply using the tag that the workflow was invoked with - this is enough information. However, I wanted to keep changes simple for now.

Are these changes tested?

Yes, manually:

@CTTY CTTY left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM!

@blackmwk
blackmwk requested a review from kevinjqliu July 28, 2026 08:27


# Verify that the workflow is being run on the same version as the release tag
DESIRED_REF="refs/tags/${RELEASE_TAG}"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Is it possible to forbid non tag refs in the workflow dispatch arg?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants