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

Fix release failing when there were duplicate tags #674

Merged
merged 1 commit into from
Oct 9, 2024

Conversation

gerrod3
Copy link
Collaborator

@gerrod3 gerrod3 commented Oct 9, 2024

We can get duplicate tags right after we do a release and not immediately merge the version bump in pulpcore. Nightly will then have the same y-version as the latest release which creates duplicate tags in our tagging logic. Now we de-dup the tags before publishing.

We can get duplicate tags right after we do a release and not immediately
merge the version bump in pulpcore. Nightly will then have the same y-version
as the latest release which creates duplicate tags in our tagging logic.
Now we de-dup the tags before publishing.
@@ -130,6 +130,7 @@ jobs:
tags="${tags} ${NIGHTLY_VERSION} ${NIGHTLY_BRANCH} latest"
fi
fi
tags=$(echo "${tags}" | xargs -n1 | sort -u | xargs)
Copy link
Member

Choose a reason for hiding this comment

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

I did not know, xargs can be used that way.

Copy link
Member

Choose a reason for hiding this comment

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

according to man xargs:

[...] and executes the command (default is echo) [...]

@gerrod3 gerrod3 merged commit b8da1f4 into pulp:latest Oct 9, 2024
17 checks passed
@gerrod3 gerrod3 deleted the tag-dup branch October 9, 2024 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants