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 deploy script to not attempt re-publishing the same version of a plugin #124

Merged

Conversation

mukeshpanchal27
Copy link
Contributor

@mukeshpanchal27 mukeshpanchal27 commented Apr 21, 2023

Description of the Change

I tried this solution in folk repo and here is the result for it. At the moment the WebP Uploads is release with version 1.0.0

  • Run the deploy workflow with the slug webp-uploads and version 1.0.0. It will show the message "ℹ︎ Version 1.0.0 of plugin webp-uploads was already published" and skip the script execution without throwing any errors. Check result here
  • Run the deploy workflow with the slug webp-uploads and version 1.0.1. It will execute all the steps and commit the new version to the SVN repository(For testing i have comment the SVN commit step). Check result here

Closes #123

Credits

Props @mukeshpanchal27 @joemcgill @felixarntz

Checklist:

  • I agree to follow this project's Code of Conduct.
  • I have updated the documentation accordingly.
  • I have added tests to cover my change.
  • All new and existing tests pass.

@mukeshpanchal27 mukeshpanchal27 self-assigned this Apr 21, 2023
@mukeshpanchal27 mukeshpanchal27 marked this pull request as ready for review April 21, 2023 06:16
@mukeshpanchal27 mukeshpanchal27 requested a review from a team as a code owner April 21, 2023 06:16
@mukeshpanchal27 mukeshpanchal27 changed the title Add plugin version check Fix deploy script to not attempt re-publishing the same version of a plugin Apr 21, 2023
deploy.sh Outdated Show resolved Hide resolved
Copy link
Contributor

@joemcgill joemcgill left a comment

Choose a reason for hiding this comment

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

Thanks for accepting my suggestion, @mukeshpanchal27. This looks good to me!

Copy link

@felixarntz felixarntz left a comment

Choose a reason for hiding this comment

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

Thanks @mukeshpanchal27, looks great!

@jeffpaul jeffpaul requested review from a team and faisal-alvi and removed request for jeffpaul and a team April 21, 2023 19:07
@jeffpaul jeffpaul added this to the 2.2.0 milestone Apr 21, 2023
tsteur added a commit to matomo-org/matomo-for-wordpress that referenced this pull request Apr 21, 2023
Copy link
Member

@faisal-alvi faisal-alvi left a comment

Choose a reason for hiding this comment

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

@mukeshpanchal27 Thanks for your work. LGTM!

@jeffpaul jeffpaul merged commit 38e8571 into 10up:develop Apr 24, 2023
deploy.sh Show resolved Hide resolved
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.

Fix deploy script to not attempt re-publishing the same version of a plugin
6 participants