Skip to content

Commit f23417c

Browse files
authored
Merge pull request #714 from linode/dev
Release v5.56.0
2 parents 62bdfa7 + d7cf6dc commit f23417c

36 files changed

+1013
-290
lines changed

.github/workflows/docker-build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414

1515
steps:
16-
- uses: actions/checkout@v3
16+
- uses: actions/checkout@v4
1717
- name: Build the Docker image
1818
run: docker build . --file Dockerfile --tag linode/cli:$(date +%s) --build-arg="github_token=$GITHUB_TOKEN"
1919
env:

.github/workflows/e2e-suite-windows.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6262

6363
- name: Setup Python
64-
uses: actions/setup-python@v4
64+
uses: actions/setup-python@v5
6565
with:
6666
python-version: '3.x'
6767

@@ -77,7 +77,7 @@ jobs:
7777
env:
7878
LINODE_CLI_TOKEN: ${{ secrets.LINODE_TOKEN_2 }}
7979

80-
- uses: actions/github-script@v6
80+
- uses: actions/github-script@v7
8181
id: update-check-run
8282
if: ${{ inputs.pull_request_number != '' && fromJson(steps.commit-hash.outputs.data).repository.pullRequest.headRef.target.oid == inputs.sha }}
8383
env:

.github/workflows/e2e-suite.yml

Lines changed: 29 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -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 }}`"

.github/workflows/nightly-smoke-tests.yml

Lines changed: 28 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
ref: ${{ github.event.inputs.sha || github.ref }}
2626

2727
- name: Set up Python
28-
uses: actions/setup-python@v4
28+
uses: actions/setup-python@v5
2929
with:
3030
python-version: '3.x'
3131

@@ -46,61 +46,32 @@ jobs:
4646

4747
- name: Notify Slack
4848
if: always() && github.repository == 'linode/linode-cli' # Run even if integration tests fail and only on main repository
49-
uses: slackapi/slack-github-action@v1.26.0
49+
uses: slackapi/slack-github-action@v2.0.0
5050
with:
51-
channel-id: ${{ secrets.SLACK_CHANNEL_ID }}
51+
method: chat.postMessage
52+
token: ${{ secrets.SLACK_BOT_TOKEN }}
5253
payload: |
53-
{
54-
"blocks": [
55-
{
56-
"type": "section",
57-
"text": {
58-
"type": "mrkdwn",
59-
"text": ":rocket: *${{ github.workflow }} Completed in: ${{ github.repository }}* :white_check_mark:"
60-
}
61-
},
62-
{
63-
"type": "divider"
64-
},
65-
{
66-
"type": "section",
67-
"fields": [
68-
{
69-
"type": "mrkdwn",
70-
"text": "*Build Result:*\n${{ steps.smoke_tests.outcome == 'success' && ':large_green_circle: Build Passed' || ':red_circle: Build Failed' }}"
71-
},
72-
{
73-
"type": "mrkdwn",
74-
"text": "*Branch:*\n`${{ github.ref_name }}`"
75-
}
76-
]
77-
},
78-
{
79-
"type": "section",
80-
"fields": [
81-
{
82-
"type": "mrkdwn",
83-
"text": "*Commit Hash:*\n<${{ github.server_url }}/${{ github.repository }}/commit/${{ github.sha }}|${{ github.sha }}>"
84-
},
85-
{
86-
"type": "mrkdwn",
87-
"text": "*Run URL:*\n<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|View Run Details>"
88-
}
89-
]
90-
},
91-
{
92-
"type": "divider"
93-
},
94-
{
95-
"type": "context",
96-
"elements": [
97-
{
98-
"type": "mrkdwn",
99-
"text": "Triggered by: :bust_in_silhouette: `${{ github.actor }}`"
100-
}
101-
]
102-
}
103-
]
104-
}
105-
env:
106-
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
54+
channel: ${{ secrets.SLACK_CHANNEL_ID }}
55+
blocks:
56+
- type: section
57+
text:
58+
type: mrkdwn
59+
text: ":rocket: *${{ github.workflow }} Completed in: ${{ github.repository }}* :white_check_mark:"
60+
- type: divider
61+
- type: section
62+
fields:
63+
- type: mrkdwn
64+
text: "*Build Result:*\n${{ steps.smoke_tests.outcome == 'success' && ':large_green_circle: Build Passed' || ':red_circle: Build Failed' }}"
65+
- type: mrkdwn
66+
text: "*Branch:*\n`${{ github.ref_name }}`"
67+
- type: section
68+
fields:
69+
- type: mrkdwn
70+
text: "*Commit Hash:*\n<${{ github.server_url }}/${{ github.repository }}/commit/${{ github.sha }}|${{ github.sha }}>"
71+
- type: mrkdwn
72+
text: "*Run URL:*\n<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|View Run Details>"
73+
- type: divider
74+
- type: context
75+
elements:
76+
- type: mrkdwn
77+
text: "Triggered by: :bust_in_silhouette: `${{ github.actor }}`"

.github/workflows/publish-oci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- name: Clone Repository
12-
uses: actions/checkout@v3
12+
uses: actions/checkout@v4
1313

1414
- name: setup python 3
15-
uses: actions/setup-python@v4
15+
uses: actions/setup-python@v5
1616
with:
1717
python-version: '3.x'
1818

@@ -23,7 +23,7 @@ jobs:
2323
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # pin@v3.2.0
2424

2525
- name: Set up Docker Buildx
26-
uses: docker/setup-buildx-action@ecf95283f03858871ff00b787d79c419715afc34 # pin@v2.7.0
26+
uses: docker/setup-buildx-action@6524bf65af31da8d45b59e8c27de4bd072b392f5 # pin@v3.8.0
2727

2828
- name: Login to Docker Hub
2929
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # pin@v3.3.0
@@ -48,7 +48,7 @@ jobs:
4848
result-encoding: string
4949

5050
- name: Build and push to DockerHub
51-
uses: docker/build-push-action@2eb1c1961a95fc15694676618e422e8ba1d63825 # pin@v4.1.1
51+
uses: docker/build-push-action@48aba3b46d1b1fec4febb7c5d0c644b249a11355 # pin@v6.10.0
5252
with:
5353
context: .
5454
file: Dockerfile

.github/workflows/publish-pypi.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- name: Checkout
11-
uses: actions/checkout@v3
11+
uses: actions/checkout@v4
1212

1313
- name: Update system packages
1414
run: sudo apt-get update -y
@@ -17,7 +17,7 @@ jobs:
1717
run: sudo apt-get install -y build-essential
1818

1919
- name: Setup Python
20-
uses: actions/setup-python@v4
20+
uses: actions/setup-python@v5
2121
with:
2222
python-version: '3.x'
2323

@@ -34,6 +34,6 @@ jobs:
3434
LINODE_CLI_VERSION: ${{ github.event.release.tag_name }}
3535

3636
- name: Publish the release artifacts to PyPI
37-
uses: pypa/gh-action-pypi-publish@a56da0b891b3dc519c7ee3284aff1fad93cc8598 # pin@release/v1.8.6
37+
uses: pypa/gh-action-pypi-publish@67339c736fd9354cd4f8cb0b744f2b82a74b5c70 # pin@release/v1.12.3
3838
with:
3939
password: ${{ secrets.PYPI_API_TOKEN }}

.github/workflows/pull-request.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- name: checkout repo
10-
uses: actions/checkout@v3
10+
uses: actions/checkout@v4
1111

1212
- name: setup python 3
13-
uses: actions/setup-python@v4
13+
uses: actions/setup-python@v5
1414
with:
1515
python-version: '3.x'
1616
- name: install boto3

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

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,14 @@ jobs:
1111
steps:
1212
- name: Notify Slack - Main Message
1313
id: main_message
14-
uses: slackapi/slack-github-action@v1.27.0
14+
uses: slackapi/slack-github-action@v2.0.0
1515
with:
16-
channel-id: ${{ secrets.CLI_SLACK_CHANNEL_ID }}
16+
method: chat.postMessage
17+
token: ${{ secrets.SLACK_BOT_TOKEN }}
1718
payload: |
18-
{
19-
"blocks": [
20-
{
21-
"type": "section",
22-
"text": {
23-
"type": "mrkdwn",
24-
"text": "*New Release Published: _linode-cli_ <${{ 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 }}
19+
channel: ${{ secrets.CLI_SLACK_CHANNEL_ID }}
20+
blocks:
21+
- type: section
22+
text:
23+
type: mrkdwn
24+
text: "*New Release Published: _linode-cli_ <${{ github.event.release.html_url }}|${{ github.event.release.tag_name }}> is now live!* :tada:"

.github/workflows/remote-release-trigger.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
private_key: ${{ secrets.CLI_RELEASE_PRIVATE_KEY }}
1616

1717
- name: Checkout
18-
uses: actions/checkout@v3
18+
uses: actions/checkout@v4
1919
with:
2020
# We want to checkout the main branch
2121
ref: 'main'
@@ -29,7 +29,7 @@ jobs:
2929

3030
- name: Calculate the desired release version
3131
id: calculate_version
32-
uses: actions/github-script@v6
32+
uses: actions/github-script@v7
3333
env:
3434
SPEC_VERSION: ${{ github.event.client_payload.spec_version }}
3535
PREVIOUS_CLI_VERSION: ${{ steps.previoustag.outputs.tag }}
@@ -60,13 +60,13 @@ jobs:
6060
id: calculate_head_sha
6161
run: echo "commit_sha=$(git rev-parse HEAD)" >> "$GITHUB_OUTPUT"
6262

63-
- uses: rickstaa/action-create-tag@84c90e6ba79b47b5147dcb11ff25d6a0e06238ba # pin@v1
63+
- uses: rickstaa/action-create-tag@a1c7777fcb2fee4f19b0f283ba888afa11678b72 # pin@v1
6464
with:
6565
tag: ${{ steps.calculate_version.outputs.result }}
6666
commit_sha: ${{ steps.calculate_head_sha.outputs.commit_sha }}
6767

6868
- name: Release
69-
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # pin@v1
69+
uses: softprops/action-gh-release@e7a8f85e1c67a31e6ed99a94b41bd0b71bbee6b8 # pin@v2.0.9
7070
with:
7171
target_commitish: 'main'
7272
token: ${{ steps.generate_token.outputs.token }}

.github/workflows/unit-tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
python-version: [ '3.9','3.10','3.11', '3.12' ]
1212
steps:
1313
- name: Clone Repository
14-
uses: actions/checkout@v3
14+
uses: actions/checkout@v4
1515

1616
- name: Update system packages
1717
run: sudo apt-get update -y
@@ -42,10 +42,10 @@ jobs:
4242
runs-on: windows-latest
4343
steps:
4444
- name: Clone Repository
45-
uses: actions/checkout@v3
45+
uses: actions/checkout@v4
4646

4747
- name: Setup Python
48-
uses: actions/setup-python@v4
48+
uses: actions/setup-python@v5
4949
with:
5050
python-version: '3.x'
5151

0 commit comments

Comments
 (0)