Skip to content

Commit

Permalink
fix(yq) downgrade to 4.25.3 (#965)
Browse files Browse the repository at this point in the history
* Revert "Bump the `yq` CLI version to 4.40.5 (#956)"

This reverts commit 1982158.

* chore(updatecli) add a condition when tracking yq to avoid proposing PR on unreleased versions

Signed-off-by: Damien Duportal <[email protected]>

---------

Signed-off-by: Damien Duportal <[email protected]>
  • Loading branch information
dduportal authored Dec 22, 2023
1 parent 280daa1 commit 2599d1c
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion goss/goss-linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ command:
exec: yq --version
exit-status: 0
stdout:
- 4.40.5
- 4.25.3
zip:
exec: zip -v
exit-status: 0
Expand Down
2 changes: 1 addition & 1 deletion goss/goss-windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ command:
exec: yq --version
exit-status: 0
stdout:
- 4.40.5
- 4.25.3
file:
C:\Program Files\Chromium\Application\:
contains: []
Expand Down
2 changes: 1 addition & 1 deletion provisioning/tools-versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@ updatecli_version: 0.70.0
vagrant_version: 2.4.0
windows_pwsh_version: 7.4.0
xq_version: 1.2.3
yq_version: 4.40.5
yq_version: 4.25.3
playwright_version: 1.40.1
8 changes: 8 additions & 0 deletions updatecli/updatecli.d/yq.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,14 @@ sources:
transformers:
- trimprefix: v

conditions:
checkForChocolateyPackage:
kind: http
disablesourceinput: true # Do not pass source as argument to the command line
spec:
url: https://community.chocolatey.org/packages/yq/{{ source "lastReleaseVersion" }}
# command: curl https://community.chocolatey.org/packages/awscli/{{ source "lastReleaseVersion" }} --silent --show-error --location --fail --output /dev/null

targets:
updateVersion:
name: Update the `yq` version in the provision-env.yml file
Expand Down

0 comments on commit 2599d1c

Please sign in to comment.