Replies: 5 comments 6 replies
-
Quick question : is it possible to run this « extra step » as part of your shell target? long term, it means a native ruby provider in updatecli would help, to take care of both files (a bit like golang) |
Beta Was this translation helpful? Give feedback.
-
Hi @treezio, It's definitely possible to use the shell plugin, I have many examples using that approach. For example the npm autodiscovery plugin fallbacks to running npm command if it detects a
The |
Beta Was this translation helpful? Give feedback.
-
Otherwise as @dduportal suggested another option would be to run an embedded script like on But IMHO it would be nice to better understand your usecase because maybe we could add a ruby integration. Like a new ruby plugin that integrate with https://guides.rubygems.org/rubygems-org-api/ and a new ruby autodiscovery plugin that suggest update for each entries from a Gemfile |
Beta Was this translation helpful? Give feedback.
-
I just check and apparently some documentation is missing so a few things that may help you writing the right pipeline. Using Example And finally you can have conditional targets using |
Beta Was this translation helpful? Give feedback.
-
I'll need to rethink the approach for this scenario. This means that in case i want to update for instance from
The tricky thing here is that I'd need to install the ruby version to be updated (step 2) so I don't get this error when running
This means that I'd need to know the ruby version to be updated beforehand in order to create the environment in the CI System, and that's what I haven't been able to figure out how to do it. GH Actions workflow using the
Another option could be doing this in different Pull Requests, but I don't like that solution. Thank you again for all your support guys, you are awesome! |
Beta Was this translation helpful? Give feedback.
-
I don't know if this is totally out of the updatecli scope, but I'm facing an scenario in our organization that might fit with updatecli purpose.
Currently updatecli is automatically running as a GitHub Actions workflow taking care of upgrading our system dependencies for Ruby projects, which means bumping:
.ruby-version
file forrbenv
local env configruby
version for the project inGemfile
Updating
Gemfile
requires re-generatingGemfile.lock
in order to keep dependencies consistency. This is currently being manually assessed, which means checking out the updatecli branch locally, runningbundle update --ruby
command and commiting changes.I was thinking that maybe it could be possible that somehow
updatecli
runs this required extra steps so all changes required for an update to be completed are automated on theapply
process.I could do this as extra steps in a github actions workflow but as the PR is already created by updatecli before manipulating the "extra-files" it might be a bit complex to implement.
I hope this makes sense somehow,
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions