-
I'm running - name: Install yq
run: |
sudo add-apt-repository ppa:rmescandon/yq
sudo apt update
sudo apt install yq -y And run it like this: - name: Format .xml file with yq
run: |
yq -i -I 4 -ox '.' my-file.xml But the GitHub action fails with the error in the title. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Same exact issue. Command I'm running in Github workflow: My error is: |
Beta Was this translation helpful? Give feedback.
-
Not sure why this worked, but changing my command this worked. Basically, added the eval keyword. That was it. yq eval -i '(.spec.values | .appVersion) = "1.2.3.45678"' /runner/_work/Tesla-Configuration/Tesla-Configuration/flux/apps/devops/tesla-app/hsm/hsm-values.yaml |
Beta Was this translation helpful? Give feedback.
-
The issue in my instance was being on a wrong version of |
Beta Was this translation helpful? Give feedback.
The issue in my instance was being on a wrong version of
yq
. The most recent version (4.35.2
at the time of writing) worked correctly.