Skip to content

Modifying the bump-cli workflow to append/replace version from supported_cli_versions.json#1973

Merged
aeisenberg merged 3 commits intomainfrom
tjgurwara99/bump-cli-extension
Jan 18, 2023
Merged

Modifying the bump-cli workflow to append/replace version from supported_cli_versions.json#1973
aeisenberg merged 3 commits intomainfrom
tjgurwara99/bump-cli-extension

Conversation

@tjgurwara99
Copy link
Copy Markdown
Member

@tjgurwara99 tjgurwara99 commented Jan 16, 2023

During the development of bump_cli.yml workflow, we understood the requirement that we want to be able to append/prepend/remove versions from versions from supported_cli_versions.json file. Initially it was decided that we should modify the bump_cli workflow, however, the complication I had when doing that was the logic to handle the cases with inputs and without inputs becomes quite complicated and therefore I decided against modifying the bump_cli workflow. If however, the maintainers really want to just keep one workflow then I can modify this branch and go from there 😄.

EDIT: Since the requirements are simplified to replacing and prepending version, we have combined the bump-cli workflow and version-change workflow into one workflow.

@tjgurwara99 tjgurwara99 force-pushed the tjgurwara99/bump-cli-extension branch from 4e1df85 to ed5c5b5 Compare January 16, 2023 21:23
@tjgurwara99 tjgurwara99 force-pushed the tjgurwara99/bump-cli-extension branch from ed5c5b5 to bfa6780 Compare January 16, 2023 22:06
@tjgurwara99 tjgurwara99 marked this pull request as ready for review January 16, 2023 22:08
@tjgurwara99 tjgurwara99 requested a review from a team as a code owner January 16, 2023 22:08
Copy link
Copy Markdown
Contributor

@aeisenberg aeisenberg left a comment

Choose a reason for hiding this comment

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

And I think it can be made even simpler for maintainers to have only a single workflow with an option input. The two options could be "replace" and "prepend". You could add a second job to the bump-cli workflow that runs only when "prepend" is selected. This job could do something similar to what you already wrote.

Comment thread .github/workflows/version-change.yml Outdated
@tjgurwara99 tjgurwara99 changed the title Automating appending/prepending/removing version from supported_cli_versions.json Modifying the bump-cli workflow to append/replace version from supported_cli_versions.json Jan 17, 2023
Comment thread .github/workflows/bump-cli.yml
Copy link
Copy Markdown
Contributor

@aeisenberg aeisenberg left a comment

Choose a reason for hiding this comment

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

Looks good. I tried it out here and behaved as I expected. Just a suggestion to update the description and then looks good.

#1979

Comment thread .github/workflows/bump-cli.yml
Comment thread .github/workflows/bump-cli.yml Outdated
@aeisenberg aeisenberg merged commit bd74b41 into main Jan 18, 2023
@aeisenberg aeisenberg deleted the tjgurwara99/bump-cli-extension branch January 18, 2023 17:54
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.

2 participants