Is there any way to automatically confirm all prompts? When running vtex release patch stable or other vtex CLI commands?
We are using this command inside a CI/CD pipeline.
Is there any way to automatically confirm all prompts? When running vtex release patch stable or other vtex CLI commands?
We are using this command inside a CI/CD pipeline.
Yes, it is described in the README.md itself.
- run: |
echo "yes" | vtex use my-workspace
vtex link --no-watch
It’s that the number of “yes” is unpredictable. Sometimes 2, sometimes 3 or more.
I found a command called yes and it works like this:
For example, if you want to send “yes” to a confirmation prompt, you can run the following command in the terminal:
yes "s" | comando_que_solicita_confirmacao
yes "sim" | comando_que_solicita_confirmacao
yes "y" | comando_que_solicita_confirmacao
yes "yes" | comando_que_solicita_confirmacao
Hi @darioajr, did you manage to complete the release?
Using Github Actions, I’m getting this error:
Command: echo “y” | echo “y” | vtex release pre beta
18:20:45.854 - info: Old version: 0.0.2-beta.3
18:20:45.857 - info: New version: 0.0.2-beta.4
18:20:45.878 - info: Starting release…
18:20:45.891 - info: > git status --porcelain
18:20:45.891 - error: Failed to release
Error: Please commit your changes before proceeding.
use the /usr/bin/yes linux command