Skip to content

ci: do not push to TestPyPi when a git tag is pushed to repo#3161

Merged
igaw merged 1 commit intolinux-nvme:masterfrom
martin-belanger:skip-tag-push-for-pypi-upload-2
Mar 10, 2026
Merged

ci: do not push to TestPyPi when a git tag is pushed to repo#3161
igaw merged 1 commit intolinux-nvme:masterfrom
martin-belanger:skip-tag-push-for-pypi-upload-2

Conversation

@martin-belanger
Copy link
Copy Markdown

@martin-belanger martin-belanger commented Mar 10, 2026

When doing a release we end up with two builds running in parallel. One for the actual branch being merged, And the other on the git tag being pushed to the repo. This results in the same pypi package (i.e. same exact name) being pushed to PyPI, which is not allowed.

Hopefully fixes #3139

@igaw - I decided to check whether we're running the action for a branch vs. a tag instead of setting skip_existing: true.

@igaw igaw merged commit 7d8d11d into linux-nvme:master Mar 10, 2026
26 checks passed
@igaw
Copy link
Copy Markdown
Collaborator

igaw commented Mar 10, 2026

Thanks!

@martin-belanger martin-belanger deleted the skip-tag-push-for-pypi-upload-2 branch March 10, 2026 18:30
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.

python upload fails

2 participants