-
Notifications
You must be signed in to change notification settings - Fork 96
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
Add support to automatically update the "Stable tag" and "Tested up to" lines in the readme.txt during deployment. #113
Conversation
Both "Stable tag" and "Tested up to" are updated (if required) and committed back to the repo, along with the tag being updated to include the new version of the readme file.
e252418
to
106b39c
Compare
As per discussion, make the default to not update the WP Version during a release, but have a flag to enable it.
In re-reviewing this, I don't think that our primary use case (or even an optional case here) would be to update the plugin source in GH from values on WP.org. I would expect that the values on GH should be updating WP.org (and not vice verse as I think this PR would do) and as such would recommend we close out this PR. @dkotter thoughts? |
Yes, I agree with that and also agree with your initial comment here: #112 (comment). I think the most we should do here is have the deploy fail if the version number hasn't been bumped but I would not expect this action to automatically update that version and commit it back to GitHub. |
This PR pulls the current WP version from WP.org (through the update api), and then updates GitHub before the push out to wp.org's plugin directory. This ensure that both GH and WP's repo's are up to date. |
I'm fine with not merging this if it's considered out of scope for the action. I wouldn't want it to fail due to the non-updated value, that would seem heavy handed if the user wanted that to be the result (aka, perhaps the plugin doesn't work with newer versions of WP yet). If the decision is to reject the change I'll fork the action (or maybe a separate action that just does the update) and release my own as I do think this is a useful feature to have. |
@toolstack that sounds reasonable to me, thanks! |
Just FYI there are existing actions that can do this, like mine 🙂 My personal preference here is to manage all three things separately, "Stable tag" as part of the release process (example) "Tested up to" as a PR that gets created, and the plugin deploy via this action. This action should just deploy imo. |
Description of the Change
Add support to automatically update the "Stable tag" and "Tested up to" lines in the readme.txt during deployment.
Closes #112
How to test the Change
Trigger a new deployment.
Changelog Entry
Added - Support for updating readme.txt "Tested up to" and "Stable tag" automatically as part of the deployment.
Credits
Props @toolstack
Checklist: