Skip to content

Commit

Permalink
ci: pin updatecli version using .tool-versions and autobump (#4340)
Browse files Browse the repository at this point in the history
  • Loading branch information
v1v authored Dec 7, 2024
1 parent 3e615aa commit 0f1370e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/updatecli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,14 @@ jobs:
- uses: elastic/oblt-actions/updatecli/run@v1
with:
command: --experimental compose diff
# TODO: update to the latest version so the policies can work as expected.
# latest changes in the policies require to use the dependson feature.
version: "v0.88.0"
version-file: .tool-versions
env:
GITHUB_TOKEN: ${{ steps.get_token.outputs.token }}

- uses: elastic/oblt-actions/updatecli/run@v1
with:
command: --experimental compose apply
# TODO: update to the latest version so the policies can work as expected.
# latest changes in the policies require to use the dependson feature.
version: "v0.88.0"
version-file: .tool-versions
env:
GITHUB_TOKEN: ${{ steps.get_token.outputs.token }}

Expand Down
1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
updatecli v0.88.0
5 changes: 5 additions & 0 deletions updatecli-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,8 @@ policies:
values:
- .ci/updatecli/values.d/scm.yml
- .ci/updatecli/values.d/update-compose.yml

- name: Update Updatecli version
policy: ghcr.io/elastic/oblt-updatecli-policies/updatecli/version:0.2.0@sha256:013a37ddcdb627c46e7cba6fb9d1d7bc144584fa9063843ae7ee0f6ef26b4bea
values:
- .ci/updatecli/values.d/scm.yml

0 comments on commit 0f1370e

Please sign in to comment.