Skip to content

Commit 0f1370e

Browse files
authored
ci: pin updatecli version using .tool-versions and autobump (#4340)
1 parent 3e615aa commit 0f1370e

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

.github/workflows/updatecli.yml

+2-6
Original file line numberDiff line numberDiff line change
@@ -38,18 +38,14 @@ jobs:
3838
- uses: elastic/oblt-actions/updatecli/run@v1
3939
with:
4040
command: --experimental compose diff
41-
# TODO: update to the latest version so the policies can work as expected.
42-
# latest changes in the policies require to use the dependson feature.
43-
version: "v0.88.0"
41+
version-file: .tool-versions
4442
env:
4543
GITHUB_TOKEN: ${{ steps.get_token.outputs.token }}
4644

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

.tool-versions

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
updatecli v0.88.0

updatecli-compose.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,8 @@ policies:
1818
values:
1919
- .ci/updatecli/values.d/scm.yml
2020
- .ci/updatecli/values.d/update-compose.yml
21+
22+
- name: Update Updatecli version
23+
policy: ghcr.io/elastic/oblt-updatecli-policies/updatecli/version:0.2.0@sha256:013a37ddcdb627c46e7cba6fb9d1d7bc144584fa9063843ae7ee0f6ef26b4bea
24+
values:
25+
- .ci/updatecli/values.d/scm.yml

0 commit comments

Comments
 (0)