@@ -101,7 +101,7 @@ jobs:
101101 run : sudo apt-get update -y
102102
103103 - name : Setup Python
104- uses : actions/setup-python@v4
104+ uses : actions/setup-python@v5
105105 with :
106106 python-version : ${{ inputs.run-eol-python-version == 'true' && env.EOL_PYTHON_VERSION || inputs.python-version || env.DEFAULT_PYTHON_VERSION }}
107107
@@ -144,7 +144,7 @@ jobs:
144144 LINODE_CLI_OBJ_SECRET_KEY : ${{ secrets.LINODE_CLI_OBJ_SECRET_KEY }}
145145
146146 - name : Update PR Check Run
147- uses : actions/github-script@v6
147+ uses : actions/github-script@v7
148148 id : update-check-run
149149 if : ${{ inputs.pull_request_number != '' && fromJson(steps.commit-hash.outputs.data).repository.pullRequest.headRef.target.oid == inputs.sha }}
150150 env :
@@ -244,61 +244,32 @@ jobs:
244244
245245 steps :
246246 - name : Notify Slack
247- uses : slackapi/slack-github-action@v1.27 .0
247+ uses : slackapi/slack-github-action@v2.0 .0
248248 with :
249- channel-id : ${{ secrets.SLACK_CHANNEL_ID }}
249+ method : chat.postMessage
250+ token : ${{ secrets.SLACK_BOT_TOKEN }}
250251 payload : |
251- {
252- "blocks": [
253- {
254- "type": "section",
255- "text": {
256- "type": "mrkdwn",
257- "text": ":rocket: *${{ github.workflow }} Completed in: ${{ github.repository }}* :white_check_mark:"
258- }
259- },
260- {
261- "type": "divider"
262- },
263- {
264- "type": "section",
265- "fields": [
266- {
267- "type": "mrkdwn",
268- "text": "*Build Result:*\n${{ needs.integration_tests.result == 'success' && ':large_green_circle: Build Passed' || ':red_circle: Build Failed' }}"
269- },
270- {
271- "type": "mrkdwn",
272- "text": "*Branch:*\n`${{ github.ref_name }}`"
273- }
274- ]
275- },
276- {
277- "type": "section",
278- "fields": [
279- {
280- "type": "mrkdwn",
281- "text": "*Commit Hash:*\n<${{ github.server_url }}/${{ github.repository }}/commit/${{ github.sha }}|${{ github.sha }}>"
282- },
283- {
284- "type": "mrkdwn",
285- "text": "*Run URL:*\n<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|View Run Details>"
286- }
287- ]
288- },
289- {
290- "type": "divider"
291- },
292- {
293- "type": "context",
294- "elements": [
295- {
296- "type": "mrkdwn",
297- "text": "Triggered by: :bust_in_silhouette: `${{ github.actor }}`"
298- }
299- ]
300- }
301- ]
302- }
303- env :
304- SLACK_BOT_TOKEN : ${{ secrets.SLACK_BOT_TOKEN }}
252+ channel: ${{ secrets.SLACK_CHANNEL_ID }}
253+ blocks:
254+ - type: section
255+ text:
256+ type: mrkdwn
257+ text: ":rocket: *${{ github.workflow }} Completed in: ${{ github.repository }}* :white_check_mark:"
258+ - type: divider
259+ - type: section
260+ fields:
261+ - type: mrkdwn
262+ text: "*Build Result:*\n${{ needs.integration_tests.result == 'success' && ':large_green_circle: Build Passed' || ':red_circle: Build Failed' }}"
263+ - type: mrkdwn
264+ text: "*Branch:*\n`${{ github.ref_name }}`"
265+ - type: section
266+ fields:
267+ - type: mrkdwn
268+ text: "*Commit Hash:*\n<${{ github.server_url }}/${{ github.repository }}/commit/${{ github.sha }}|${{ github.sha }}>"
269+ - type: mrkdwn
270+ text: "*Run URL:*\n<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|View Run Details>"
271+ - type: divider
272+ - type: context
273+ elements:
274+ - type: mrkdwn
275+ text: "Triggered by: :bust_in_silhouette: `${{ github.actor }}`"
0 commit comments