Skip to content

Commit 16874cd

Browse files
committed
ci: pin updatecli version using .tool-versions and autobump
1 parent 6b32a89 commit 16874cd

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

.github/workflows/updatecli.yml

Lines changed: 2 additions & 6 deletions
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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
updatecli v0.88.0

updatecli-compose.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,8 @@ policies:
2020
policy: ghcr.io/updatecli/policies/autodiscovery/updatecli:0.8.0@sha256:99e9e61b501575c2c176c39f2275998d198b590a3f6b1fe829f7315f8d457e7f
2121
values:
2222
- .ci/updatecli/values.d/scm.yml
23-
- .ci/updatecli/values.d/update-compose.yml
23+
- .ci/updatecli/values.d/update-compose.yml
24+
- name: Update Updatecli version
25+
policy: ghcr.io/elastic/oblt-updatecli-policies/updatecli/version:0.2.0@sha256:013a37ddcdb627c46e7cba6fb9d1d7bc144584fa9063843ae7ee0f6ef26b4bea
26+
values:
27+
- .ci/updatecli/values.d/scm.yml

0 commit comments

Comments
 (0)