File tree 2 files changed +34
-4
lines changed
2 files changed +34
-4
lines changed Original file line number Diff line number Diff line change @@ -35,15 +35,30 @@ jobs:
35
35
uses : updatecli/updatecli-action@9a37c7e35598d7b37d8e7568b40ed9538112be01 # v0.76.1
36
36
37
37
- name : Run Updatecli in Apply mode
38
- run : updatecli --experimental apply --config .ci/bump-elastic-stack-snapshot.yml
38
+ run : updatecli apply --config .ci/bump-elastic-stack-snapshot.yml
39
39
env :
40
40
BRANCH : ${{ matrix.branch }}
41
41
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
42
+ GIT_USER : " github-actions[bot]"
43
+ GIT_EMAIL : " 41898282+github-actions[bot]@users.noreply.github.com"
42
44
43
45
- if : ${{ failure() }}
44
46
uses : slackapi/slack-github-action@70cd7be8e40a46e8b0eced40b0de447bdb42f68e # v1.26.0
45
47
with :
46
48
channel-id : ' #fleet-notifications'
47
- payload : " :traffic_cone: updatecli failed for `${{ github.repository }}@${{ github.ref_name }}`, `@fleet_team` please look what's going on <${{ env.JOB_URL }}|here>"
49
+ payload : |
50
+ {
51
+ "text": "${{ env.MESSAGE }}",
52
+ "blocks": [
53
+ {
54
+ "type": "section",
55
+ "text": {
56
+ "type": "mrkdwn",
57
+ "text": "${{ env.MESSAGE }}"
58
+ }
59
+ }
60
+ ]
61
+ }
48
62
env :
49
63
SLACK_BOT_TOKEN : ${{ secrets.SLACK_BOT_TOKEN }}
64
+ MESSAGE : " :traffic_cone: updatecli failed for `${{ github.repository }}@${{ github.ref_name }}`, `@fleet_team` please look what's going on <${{ env.JOB_URL }}|here>"
Original file line number Diff line number Diff line change @@ -26,14 +26,29 @@ jobs:
26
26
uses : updatecli/updatecli-action@9a37c7e35598d7b37d8e7568b40ed9538112be01 # v0.76.1
27
27
28
28
- name : Run Updatecli in Apply mode
29
- run : updatecli --experimental apply --config .ci/bump-golang.yml
29
+ run : updatecli apply --config .ci/bump-golang.yml
30
30
env :
31
31
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
32
+ GIT_USER : " github-actions[bot]"
33
+ GIT_EMAIL : " 41898282+github-actions[bot]@users.noreply.github.com"
32
34
33
35
- if : ${{ failure() }}
34
36
uses : slackapi/slack-github-action@70cd7be8e40a46e8b0eced40b0de447bdb42f68e # v1.26.0
35
37
with :
36
38
channel-id : ' #fleet-notifications'
37
- payload : " :traffic_cone: updatecli failed for `${{ github.repository }}@${{ github.ref_name }}`, `@fleet_team` please look what's going on <${{ env.JOB_URL }}|here>"
39
+ payload : |
40
+ {
41
+ "text": "${{ env.MESSAGE }}",
42
+ "blocks": [
43
+ {
44
+ "type": "section",
45
+ "text": {
46
+ "type": "mrkdwn",
47
+ "text": "${{ env.MESSAGE }}"
48
+ }
49
+ }
50
+ ]
51
+ }
38
52
env :
39
53
SLACK_BOT_TOKEN : ${{ secrets.SLACK_BOT_TOKEN }}
54
+ MESSAGE : " :traffic_cone: updatecli failed for `${{ github.repository }}@${{ github.ref_name }}`, `@fleet_team` please look what's going on <${{ env.JOB_URL }}|here>"
You can’t perform that action at this time.
0 commit comments