Skip to content

Commit bb8fd62

Browse files
dependabot[bot]jriddle-linodeykim-akamai
authored
build(deps): bump slackapi/slack-github-action from 1.27.0 to 2.0.0 (#619)
* build(deps): bump slackapi/slack-github-action from 1.27.0 to 2.0.0 Bumps [slackapi/slack-github-action](https://github.com/slackapi/slack-github-action) from 1.27.0 to 2.0.0. - [Release notes](https://github.com/slackapi/slack-github-action/releases) - [Commits](slackapi/slack-github-action@v1.27.0...v2.0.0) --- updated-dependencies: - dependency-name: slackapi/slack-github-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * fix payloads * fix smoke test --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jacob Riddle <[email protected]> Co-authored-by: ykim-1 <[email protected]> Co-authored-by: Youjung Kim <[email protected]>
1 parent 663eb17 commit bb8fd62

File tree

4 files changed

+66
-131
lines changed

4 files changed

+66
-131
lines changed

.github/workflows/ci.yml

+29-58
Original file line numberDiff line numberDiff line change
@@ -80,66 +80,37 @@ jobs:
8080

8181
notify-slack:
8282
runs-on: ubuntu-latest
83-
needs: [test]
84-
if: ${{ (success() || failure()) && github.ref == 'refs/heads/main' && github.event_name == 'push' && github.repository == 'linode/linodego' }} # Run even if integration tests fail and only on main repository
83+
needs: [ test ]
84+
if: ${{ (success() || failure()) && github.ref == 'refs/heads/main' && github.event_name == 'push' && github.repository == 'linode/linodego' }}
8585

8686
steps:
8787
- name: Notify Slack
88-
uses: slackapi/slack-github-action@v1.27.0
88+
uses: slackapi/slack-github-action@v2.0.0
8989
with:
90-
channel-id: ${{ secrets.SLACK_CHANNEL_ID }}
90+
method: chat.postMessage
91+
token: ${{ secrets.SLACK_BOT_TOKEN }}
9192
payload: |
92-
{
93-
"blocks": [
94-
{
95-
"type": "section",
96-
"text": {
97-
"type": "mrkdwn",
98-
"text": ":rocket: *${{ github.workflow }} Completed in: ${{ github.repository }}* :white_check_mark:"
99-
}
100-
},
101-
{
102-
"type": "divider"
103-
},
104-
{
105-
"type": "section",
106-
"fields": [
107-
{
108-
"type": "mrkdwn",
109-
"text": "*Build Result:*\n${{ needs.test.result == 'success' && ':large_green_circle: Build Passed' || ':red_circle: Build Failed' }}"
110-
},
111-
{
112-
"type": "mrkdwn",
113-
"text": "*Branch:*\n`${{ github.ref_name }}`"
114-
}
115-
]
116-
},
117-
{
118-
"type": "section",
119-
"fields": [
120-
{
121-
"type": "mrkdwn",
122-
"text": "*Commit Hash:*\n<${{ github.server_url }}/${{ github.repository }}/commit/${{ github.sha }}|${{ github.sha }}>"
123-
},
124-
{
125-
"type": "mrkdwn",
126-
"text": "*Run URL:*\n<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|View Run Details>"
127-
}
128-
]
129-
},
130-
{
131-
"type": "divider"
132-
},
133-
{
134-
"type": "context",
135-
"elements": [
136-
{
137-
"type": "mrkdwn",
138-
"text": "Triggered by: :bust_in_silhouette: `${{ github.actor }}`"
139-
}
140-
]
141-
}
142-
]
143-
}
144-
env:
145-
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
93+
channel: ${{ secrets.SLACK_CHANNEL_ID }}
94+
blocks:
95+
- type: section
96+
text:
97+
type: mrkdwn
98+
text: ":rocket: *${{ github.workflow }} Completed in: ${{ github.repository }}* :white_check_mark:"
99+
- type: divider
100+
- type: section
101+
fields:
102+
- type: mrkdwn
103+
text: "*Build Result:*\n${{ needs.test.result == 'success' && ':large_green_circle: Build Passed' || ':red_circle: Build Failed' }}"
104+
- type: mrkdwn
105+
text: "*Branch:*\n`${{ github.ref_name }}`"
106+
- type: section
107+
fields:
108+
- type: mrkdwn
109+
text: "*Commit Hash:*\n<${{ github.server_url }}/${{ github.repository }}/commit/${{ github.sha }}|${{ github.sha }}>"
110+
- type: mrkdwn
111+
text: "*Run URL:*\n<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|View Run Details>"
112+
- type: divider
113+
- type: context
114+
elements:
115+
- type: mrkdwn
116+
text: "Triggered by: :bust_in_silhouette: `${{ github.actor }}`"

.github/workflows/nightly_smoke_tests.yml

+27-56
Original file line numberDiff line numberDiff line change
@@ -38,61 +38,32 @@ jobs:
3838

3939
- name: Notify Slack
4040
if: (success() || failure()) && github.repository == 'linode/linodego'
41-
uses: slackapi/slack-github-action@v1.27.0
41+
uses: slackapi/slack-github-action@v2.0.0
4242
with:
43-
channel-id: ${{ secrets.SLACK_CHANNEL_ID }}
43+
method: chat.postMessage
44+
token: ${{ secrets.SLACK_BOT_TOKEN }}
4445
payload: |
45-
{
46-
"blocks": [
47-
{
48-
"type": "section",
49-
"text": {
50-
"type": "mrkdwn",
51-
"text": ":rocket: *${{ github.workflow }} Completed in: ${{ github.repository }}* :white_check_mark:"
52-
}
53-
},
54-
{
55-
"type": "divider"
56-
},
57-
{
58-
"type": "section",
59-
"fields": [
60-
{
61-
"type": "mrkdwn",
62-
"text": "*Build Result:*\n${{ steps.smoke_tests.outcome == 'success' && ':large_green_circle: Build Passed' || ':red_circle: Build Failed' }}"
63-
},
64-
{
65-
"type": "mrkdwn",
66-
"text": "*Branch:*\n`${{ github.ref_name }}`"
67-
}
68-
]
69-
},
70-
{
71-
"type": "section",
72-
"fields": [
73-
{
74-
"type": "mrkdwn",
75-
"text": "*Commit Hash:*\n<${{ github.server_url }}/${{ github.repository }}/commit/${{ github.sha }}|${{ github.sha }}>"
76-
},
77-
{
78-
"type": "mrkdwn",
79-
"text": "*Run URL:*\n<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|View Run Details>"
80-
}
81-
]
82-
},
83-
{
84-
"type": "divider"
85-
},
86-
{
87-
"type": "context",
88-
"elements": [
89-
{
90-
"type": "mrkdwn",
91-
"text": "Triggered by: :bust_in_silhouette: `${{ github.actor }}`"
92-
}
93-
]
94-
}
95-
]
96-
}
97-
env:
98-
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
46+
channel: ${{ secrets.SLACK_CHANNEL_ID }}
47+
blocks:
48+
- type: section
49+
text:
50+
type: mrkdwn
51+
text: ":rocket: *${{ github.workflow }} Completed in: ${{ github.repository }}* :white_check_mark:"
52+
- type: divider
53+
- type: section
54+
fields:
55+
- type: mrkdwn
56+
text: "*Build Result:*\n${{ steps.smoke_tests.outcome == 'success' && ':large_green_circle: Build Passed' || ':red_circle: Build Failed' }}"
57+
- type: mrkdwn
58+
text: "*Branch:*\n`${{ github.ref_name }}`"
59+
- type: section
60+
fields:
61+
- type: mrkdwn
62+
text: "*Commit Hash:*\n<${{ github.server_url }}/${{ github.repository }}/commit/${{ github.sha }}|${{ github.sha }}>"
63+
- type: mrkdwn
64+
text: "*Run URL:*\n<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|View Run Details>"
65+
- type: divider
66+
- type: context
67+
elements:
68+
- type: mrkdwn
69+
text: "Triggered by: :bust_in_silhouette: `${{ github.actor }}`"

.github/workflows/release-notify-slack.yml

+9-16
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,14 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Notify Slack - Main Message
13-
id: main_message
14-
uses: slackapi/[email protected]
13+
uses: slackapi/[email protected]
1514
with:
16-
channel-id: ${{ secrets.DEV_DX_SLACK_CHANNEL_ID }}
15+
method: chat.postMessage
16+
token: ${{ secrets.SLACK_BOT_TOKEN }}
1717
payload: |
18-
{
19-
"blocks": [
20-
{
21-
"type": "section",
22-
"text": {
23-
"type": "mrkdwn",
24-
"text": "*New Release Published: _linodego_ <${{ github.event.release.html_url }}|${{ github.event.release.tag_name }}> is now live!* :tada:"
25-
}
26-
}
27-
]
28-
}
29-
env:
30-
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
18+
channel: ${{ secrets.DEV_DX_SLACK_CHANNEL_ID }}
19+
blocks:
20+
- type: section
21+
text:
22+
type: mrkdwn
23+
text: "*New Release Published: _linodego_ <${{ github.event.release.html_url }}|${{ github.event.release.tag_name }}> is now live!* :tada:"

test/integration/lke_clusters_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ func setupLKECluster(t *testing.T, clusterModifiers []clusterModifier, fixturesY
290290
createOpts := linodego.LKEClusterCreateOptions{
291291
Label: label,
292292
Region: getRegionsWithCaps(t, client, []string{"Kubernetes", "Disk Encryption"})[0],
293-
K8sVersion: "1.29",
293+
K8sVersion: "1.31",
294294
Tags: []string{"testing"},
295295
NodePools: []linodego.LKENodePoolCreateOptions{{Count: 1, Type: "g6-standard-2", Tags: []string{"test"}}},
296296
}

0 commit comments

Comments
 (0)