Skip to content

Commit 58886e6

Browse files
authored
deps: use the latest updatecli version and use oblt-actions (#9082)
1 parent 0fda77c commit 58886e6

File tree

6 files changed

+20
-43
lines changed

6 files changed

+20
-43
lines changed

.github/workflows/bump-beats-version.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ jobs:
5656
uses: elastic/oblt-actions/updatecli/run@v1
5757
with:
5858
command: apply --config .ci/updatecli/update-beats.yml --values .ci/updatecli/values.d/scm.yml
59+
version-file: .updatecli-version
5960
env:
6061
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6162
BRANCH_NAME: ${{ matrix.branch }}

.github/workflows/bump-golang.yml

Lines changed: 8 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -21,32 +21,16 @@ jobs:
2121
steps:
2222
- uses: actions/checkout@v4
2323

24-
- name: Install Updatecli in the runner
25-
uses: updatecli/updatecli-action@1536e372d5f433385f11b5b133b23a9833c510ce # 2.86.0
26-
27-
- name: Run Updatecli in Apply mode
28-
run: updatecli apply --config .ci/updatecli/updatecli-bump-golang.yml --values .ci/updatecli/values.d/scm.yml
24+
- uses: elastic/oblt-actions/updatecli/run@v1
25+
with:
26+
command: apply --config .ci/updatecli/updatecli-bump-golang.yml --values .ci/updatecli/values.d/scm.yml
27+
version-file: .updatecli-version
2928
env:
3029
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3130

3231
- if: ${{ failure() }}
33-
uses: slackapi/slack-github-action@91efab103c0de0a537f72a35f6b8cda0ee76bf0a # v2.1.1
32+
uses: elastic/oblt-actions/slack/send@v1
3433
with:
35-
method: chat.postMessage
36-
token: ${{ secrets.SLACK_BOT_TOKEN }}
37-
payload: |
38-
{
39-
"channel": "#ingest-notifications",
40-
"text": "${{ env.SLACK_MESSAGE }}",
41-
"blocks": [
42-
{
43-
"type": "section",
44-
"text": {
45-
"type": "mrkdwn",
46-
"text": "${{ env.SLACK_MESSAGE }}"
47-
}
48-
}
49-
]
50-
}
51-
env:
52-
SLACK_MESSAGE: ":traffic_cone: updatecli failed for `${{ github.repository }}@${{ github.ref_name }}`, `@agent-team` please look what's going on <${{ env.JOB_URL }}|here>"
34+
bot-token: ${{ secrets.SLACK_BOT_TOKEN }}
35+
channel-id: "#ingest-notifications"
36+
message: ":traffic_cone: updatecli failed for `${{ github.repository }}@${{ github.ref_name }}`, `@agent-team` please look what's going on <${{ env.JOB_URL }}|here>"

.github/workflows/bump-otel-version.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ jobs:
3939
uses: elastic/oblt-actions/updatecli/run@v1
4040
with:
4141
command: apply --config .ci/updatecli/update-otel.yml --values .ci/updatecli/values.d/scm.yml
42+
version-file: .updatecli-version
4243
env:
4344
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4445
BRANCH_NAME: ${{ matrix.branch }}

.github/workflows/bump-vm-images.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ jobs:
5252
- uses: elastic/oblt-actions/updatecli/run@v1
5353
with:
5454
command: apply --config .ci/updatecli/updatecli-bump-vm-images.yml --values .ci/updatecli/values.d/scm.yml
55+
version-file: .updatecli-version
5556
env:
5657
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5758
BRANCH_NAME: ${{ matrix.branch }}

.github/workflows/updatecli-compose.yml

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -28,33 +28,22 @@ jobs:
2828
- uses: elastic/oblt-actions/updatecli/run@v1
2929
with:
3030
command: --experimental compose diff
31+
version-file: .updatecli-version
3132
env:
3233
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3334

3435
- uses: elastic/oblt-actions/updatecli/run@v1
3536
with:
3637
command: --experimental compose apply
38+
version-file: .updatecli-version
3739
env:
3840
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3941

4042
- if: ${{ failure() }}
41-
uses: slackapi/slack-github-action@91efab103c0de0a537f72a35f6b8cda0ee76bf0a # v2.1.1
42-
with:
43-
method: chat.postMessage
44-
token: ${{ secrets.SLACK_BOT_TOKEN }}
45-
payload: |
46-
{
47-
"channel": "#ingest-notifications",
48-
"text": "${{ env.SLACK_MESSAGE }}",
49-
"blocks": [
50-
{
51-
"type": "section",
52-
"text": {
53-
"type": "mrkdwn",
54-
"text": "${{ env.SLACK_MESSAGE }}"
55-
}
56-
}
57-
]
58-
}
43+
uses: elastic/oblt-actions/slack/send@v1
5944
env:
60-
SLACK_MESSAGE: ":traffic_cone: updatecli failed for `${{ github.repository }}@${{ github.ref_name }}`, `@agent-team` please look what's going on <${{ env.JOB_URL }}|here>"
45+
JOB_URL: "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
46+
with:
47+
bot-token: ${{ secrets.SLACK_BOT_TOKEN }}
48+
channel-id: "#ingest-notifications"
49+
message: ":traffic_cone: updatecli failed for `${{ github.repository }}@${{ github.ref_name }}`, `@agent-team` please look what's going on <${{ env.JOB_URL }}|here>"

.updatecli-version

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

0 commit comments

Comments
 (0)