Skip to content

Commit d04122a

Browse files
authored
updatecli: use the oblt-actions (#588)
1 parent 03cf2e9 commit d04122a

File tree

1 file changed

+9
-27
lines changed

1 file changed

+9
-27
lines changed

.github/actions/bump-golang/action.yml

Lines changed: 9 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -32,35 +32,17 @@ runs:
3232
with:
3333
ref: ${{ inputs.branch }}
3434

35-
- name: Install Updatecli in the runner
36-
uses: updatecli/updatecli-action@3a8785d88ec4fa03d86521a181f37c0e74627463 # v2.64.0
37-
38-
- name: Run Updatecli in Apply mode
39-
run: updatecli ${{ env.COMMAND }} --config ./.github/updatecli.d/
35+
- uses: elastic/oblt-actions/updatecli/run-and-notify@v1
36+
with:
37+
command: ${{ env.COMMAND }} --config ./.github/updatecli.d/
38+
slack-bot-token: ${{ inputs.slack-bot-token }}
39+
slack-channel-id: ${{ inputs.slack-channel-id }}
40+
slack-message: ${{ inputs.slack-message }}
41+
slack-send-when: "failure"
42+
# TODO: automate the bump for this version.
43+
version: v0.81.1
4044
env:
4145
COMMAND: ${{ inputs.command }}
4246
BRANCH: ${{ inputs.branch }}
4347
GO_MINOR: ${{ inputs.go-minor }}
4448
GITHUB_TOKEN: ${{ inputs.github-token }}
45-
shell: bash
46-
47-
- if: ${{ failure() }}
48-
uses: slackapi/slack-github-action@70cd7be8e40a46e8b0eced40b0de447bdb42f68e # v1.26.0
49-
with:
50-
channel-id: ${{ inputs.slack-channel-id }}
51-
payload: |
52-
{
53-
"text": "${{ env.SLACK_MESSAGE }}",
54-
"blocks": [
55-
{
56-
"type": "section",
57-
"text": {
58-
"type": "mrkdwn",
59-
"text": "${{ env.SLACK_MESSAGE }}"
60-
}
61-
}
62-
]
63-
}
64-
env:
65-
SLACK_BOT_TOKEN: ${{ inputs.slack-bot-token }}
66-
SLACK_MESSAGE: ${{ inputs.slack-message }}

0 commit comments

Comments
 (0)