Skip to content
This repository was archived by the owner on Oct 23, 2024. It is now read-only.

Commit 56d2f76

Browse files
authored
Fix obsolete github actions (#2599)
* Fix obsolete github actions * update actions/setup-python to v4
1 parent 83b8b64 commit 56d2f76

17 files changed

+113
-113
lines changed

.github/workflows/ansible_deployment_test.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
SYS_PACKAGE: [ "deb", "rpm" ]
3232
steps:
3333
- name: Check out the codebase.
34-
uses: actions/checkout@v2
34+
uses: actions/checkout@v3
3535

3636
- name: Test ansible deployment
3737
env:
@@ -40,18 +40,18 @@ jobs:
4040
run: .github/scripts/run-deployment-tests.sh
4141

4242
- name: Uploading test result artifacts
43-
uses: actions/upload-artifact@v2
43+
uses: actions/upload-artifact@v3
4444
with:
4545
name: ${{ matrix.SYS_PACKAGE }}-ansible-deployment-test-result
4646
path: ~/${{ env.RESULT_PATH }}
4747

4848
- name: Setup python
49-
uses: actions/setup-python@v2
49+
uses: actions/setup-python@v4
5050
with:
5151
python-version: ${{ env.PYTHON_VERSION }}
5252

5353
- name: Caching dependency
54-
uses: actions/cache@v2
54+
uses: actions/cache@v3
5555
with:
5656
path: |
5757
~/.cache/pip
@@ -68,7 +68,7 @@ jobs:
6868
run: .github/scripts/run-pytest.sh
6969

7070
- name: Uploading pytest result artifacts
71-
uses: actions/upload-artifact@v2
71+
uses: actions/upload-artifact@v3
7272
with:
7373
name: ${{ matrix.SYS_PACKAGE }}-ansible-pytest-result
7474
path: |

.github/workflows/build_and_test.yml

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
runs-on: ubuntu-latest
2828
steps:
2929
- name: Check out the codebase.
30-
uses: actions/checkout@v2
30+
uses: actions/checkout@v3
3131

3232
- name: Build image and bundle
3333
env:
@@ -40,13 +40,13 @@ jobs:
4040
mv signalfx-agent-latest.tar.gz ./dist/
4141
4242
- name: Uploading image artifacts
43-
uses: actions/upload-artifact@v2
43+
uses: actions/upload-artifact@v3
4444
with:
4545
name: image
4646
path: ./dist/image.tar
4747

4848
- name: Uploading bundle artifacts
49-
uses: actions/upload-artifact@v2
49+
uses: actions/upload-artifact@v3
5050
with:
5151
name: bundle
5252
path: ./dist/signalfx-agent-latest.tar.gz
@@ -61,7 +61,7 @@ jobs:
6161
run: apk add --no-cache curl make git bash coreutils
6262

6363
- name: Check out the codebase.
64-
uses: actions/checkout@v2
64+
uses: actions/checkout@v3
6565
with:
6666
fetch-depth: 0
6767

@@ -98,21 +98,21 @@ jobs:
9898
timeout-minutes: 60
9999
steps:
100100
- name: Check out the codebase.
101-
uses: actions/checkout@v2
101+
uses: actions/checkout@v3
102102

103103
- name: Downloading bundle
104-
uses: actions/download-artifact@v2
104+
uses: actions/download-artifact@v3
105105
with:
106106
name: bundle
107107
path: ./dist
108108

109109
- name: Setup python
110-
uses: actions/setup-python@v2
110+
uses: actions/setup-python@v4
111111
with:
112112
python-version: ${{ env.PYTHON_VERSION }}
113113

114114
- name: Caching dependency
115-
uses: actions/cache@v2
115+
uses: actions/cache@v3
116116
with:
117117
path: |
118118
~/.cache/pip
@@ -130,7 +130,7 @@ jobs:
130130
run: .github/scripts/run-pytest.sh
131131

132132
- name: Uploading pytest result artifacts
133-
uses: actions/upload-artifact@v2
133+
uses: actions/upload-artifact@v3
134134
with:
135135
name: bundle-package-pytest-result
136136
path: |
@@ -146,10 +146,10 @@ jobs:
146146
options: --user root
147147
steps:
148148
- name: Check out the codebase.
149-
uses: actions/checkout@v2
149+
uses: actions/checkout@v3
150150

151151
- name: Downloading bundle
152-
uses: actions/download-artifact@v2
152+
uses: actions/download-artifact@v3
153153
with:
154154
name: bundle
155155
path: ./dist
@@ -167,7 +167,7 @@ jobs:
167167
echo "::set-output name=date::$(/bin/date -u "+%Y%m%d")"
168168
169169
- name: Caching dependency
170-
uses: actions/cache@v2
170+
uses: actions/cache@v3
171171
with:
172172
path: |
173173
/usr/share/dependency-check/data
@@ -187,7 +187,7 @@ jobs:
187187
(echo -e "\nOne or more critical vulnerabilities were found in the agent bundle.\nCheck the report artifact, fix the issues, run 'make bundle && make dependency-check', and commit the changes when the issues are resolved." && exit 1)
188188
189189
- name: Uploading test result artifacts
190-
uses: actions/upload-artifact@v2
190+
uses: actions/upload-artifact@v3
191191
with:
192192
name: dependency-check-result
193193
path: reports
@@ -205,12 +205,12 @@ jobs:
205205
apt-get install -y git
206206
207207
- name: Check out the codebase.
208-
uses: actions/checkout@v2
208+
uses: actions/checkout@v3
209209
with:
210210
fetch-depth: 0
211211

212212
- name: Downloading bundle
213-
uses: actions/download-artifact@v2
213+
uses: actions/download-artifact@v3
214214
with:
215215
name: bundle
216216
path: ./dist
@@ -220,7 +220,7 @@ jobs:
220220
AGENT_VERSION=$(./scripts/current-version) AGENT_BUNDLE=$(pwd)/dist/signalfx-agent-latest.tar.gz deployments/cloudfoundry/tile/make-latest-tile
221221
222222
- name: Uploading PCF tile build result artifacts
223-
uses: actions/upload-artifact@v2
223+
uses: actions/upload-artifact@v3
224224
with:
225225
name: pcf-tile-build-result
226226
path: deployments/cloudfoundry/tile/product/signalfx-monitoring-*.pivotal
@@ -237,21 +237,21 @@ jobs:
237237
fail-fast: false
238238
steps:
239239
- name: Check out the codebase.
240-
uses: actions/checkout@v2
240+
uses: actions/checkout@v3
241241

242242
- name: Downloading bundle
243-
uses: actions/download-artifact@v2
243+
uses: actions/download-artifact@v3
244244
with:
245245
name: bundle
246246
path: ./
247247

248248
- name: Setup python
249-
uses: actions/setup-python@v2
249+
uses: actions/setup-python@v4
250250
with:
251251
python-version: ${{ env.PYTHON_VERSION }}
252252

253253
- name: Caching dependency
254-
uses: actions/cache@v2
254+
uses: actions/cache@v3
255255
with:
256256
path: |
257257
~/.cache/pip
@@ -312,7 +312,7 @@ jobs:
312312
run: .github/scripts/run-pytest.sh
313313

314314
- name: Uploading pytest result artifacts
315-
uses: actions/upload-artifact@v2
315+
uses: actions/upload-artifact@v3
316316
with:
317317
name: integration-test-result-${{ matrix.group }}
318318
path: |
@@ -330,7 +330,7 @@ jobs:
330330
fail-fast: false
331331
steps:
332332
- name: Check out the codebase.
333-
uses: actions/checkout@v2
333+
uses: actions/checkout@v3
334334

335335
- uses: dorny/paths-filter@v2
336336
id: filter
@@ -382,7 +382,7 @@ jobs:
382382
383383
- name: Downloading image
384384
if: ${{ env.SKIP != 'true' }}
385-
uses: actions/download-artifact@v2
385+
uses: actions/download-artifact@v3
386386
with:
387387
name: image
388388
path: ./dist
@@ -395,7 +395,7 @@ jobs:
395395
- name: Caching cni
396396
id: cache-cni
397397
if: ${{ env.WITH_CRIO == '1' && env.SKIP != 'true' }}
398-
uses: actions/cache@v2
398+
uses: actions/cache@v3
399399
with:
400400
path: /tmp/cni.tgz
401401
key: v2-cni-binaries-${{ env.CNI_VERSION }}
@@ -413,7 +413,7 @@ jobs:
413413
- name: Caching cni plugins
414414
id: cache-cni-plugins
415415
if: ${{ env.WITH_CRIO == '1' && env.SKIP != 'true' }}
416-
uses: actions/cache@v2
416+
uses: actions/cache@v3
417417
with:
418418
path: /tmp/cni-plugins.tgz
419419
key: v2-cni-plugins-${{ env.CNI_PLUGINS_VERSION }}
@@ -435,7 +435,7 @@ jobs:
435435
- name: Caching crictl
436436
if: ${{ env.SKIP != 'true' }}
437437
id: cache-crictl
438-
uses: actions/cache@v2
438+
uses: actions/cache@v3
439439
with:
440440
path: /tmp/crictl.tar.gz
441441
key: v2-crictl-binary-${{ env.CRICTL_VERSION }}
@@ -452,7 +452,7 @@ jobs:
452452
- name: Caching kubectl
453453
if: ${{ env.SKIP != 'true' }}
454454
id: cache-kubectl
455-
uses: actions/cache@v2
455+
uses: actions/cache@v3
456456
with:
457457
path: /tmp/kubectl
458458
key: v5-kubectl-binary-${{ env.K8S_VERSION }}
@@ -469,7 +469,7 @@ jobs:
469469
- name: Caching minikube
470470
if: ${{ env.SKIP != 'true' }}
471471
id: cache-minikube
472-
uses: actions/cache@v2
472+
uses: actions/cache@v3
473473
with:
474474
path: /tmp/minikube
475475
key: v2-minikube-binary-${{ env.MINIKUBE_VERSION }}
@@ -495,13 +495,13 @@ jobs:
495495

496496
- name: Setup python
497497
if: ${{ env.SKIP != 'true' }}
498-
uses: actions/setup-python@v2
498+
uses: actions/setup-python@v4
499499
with:
500500
python-version: ${{ env.PYTHON_VERSION }}
501501

502502
- name: Caching dependency
503503
if: ${{ env.SKIP != 'true' }}
504-
uses: actions/cache@v2
504+
uses: actions/cache@v3
505505
with:
506506
path: |
507507
~/.cache/pip
@@ -526,7 +526,7 @@ jobs:
526526

527527
- name: Uploading pytest result artifacts
528528
if: ${{ env.SKIP != 'true' }}
529-
uses: actions/upload-artifact@v2
529+
uses: actions/upload-artifact@v3
530530
with:
531531
name: k8s-${{ matrix.K8S_VERSION }}-integration-test-result
532532
path: |

.github/workflows/check_links.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
runs-on: ubuntu-latest
2121
steps:
2222
- name: Check out the codebase.
23-
uses: actions/checkout@v2
23+
uses: actions/checkout@v3
2424

2525
- name: Checking links
2626
run: make check-links

.github/workflows/chef_deployment_test.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
SYS_PACKAGE: [ "deb", "rpm" ]
3232
steps:
3333
- name: Check out the codebase.
34-
uses: actions/checkout@v2
34+
uses: actions/checkout@v3
3535

3636
- name: Test chef deployment
3737
env:
@@ -40,18 +40,18 @@ jobs:
4040
run: .github/scripts/run-deployment-tests.sh
4141

4242
- name: Uploading test result artifacts
43-
uses: actions/upload-artifact@v2
43+
uses: actions/upload-artifact@v3
4444
with:
4545
name: ${{ matrix.SYS_PACKAGE }}-chef-deployment-test-result
4646
path: ~/${{ env.RESULT_PATH }}
4747

4848
- name: Setup python
49-
uses: actions/setup-python@v2
49+
uses: actions/setup-python@v4
5050
with:
5151
python-version: ${{ env.PYTHON_VERSION }}
5252

5353
- name: Caching dependency
54-
uses: actions/cache@v2
54+
uses: actions/cache@v3
5555
with:
5656
path: |
5757
~/.cache/pip
@@ -68,7 +68,7 @@ jobs:
6868
run: .github/scripts/run-pytest.sh
6969

7070
- name: Uploading pytest result artifacts
71-
uses: actions/upload-artifact@v2
71+
uses: actions/upload-artifact@v3
7272
with:
7373
name: ${{ matrix.SYS_PACKAGE }}-chef-pytest-result
7474
path: |
@@ -85,10 +85,10 @@ jobs:
8585
SANIC_NO_UVLOOP: 'true'
8686
steps:
8787
- name: Check out the codebase.
88-
uses: actions/checkout@v2
88+
uses: actions/checkout@v3
8989

9090
- name: Setup python
91-
uses: actions/setup-python@v2
91+
uses: actions/setup-python@v4
9292
with:
9393
python-version: ${{ env.PYTHON_VERSION }}
9494
cache: pip
@@ -101,7 +101,7 @@ jobs:
101101
run: pytest -m "windows_only" --verbose --junitxml=${{ env.RESULT_PATH }}/test_results.xml --html=${{ env.RESULT_PATH }}/test_results.html --self-contained-html tests/deployments/chef/
102102

103103
- name: Uploading pytest result artifacts
104-
uses: actions/upload-artifact@v2
104+
uses: actions/upload-artifact@v3
105105
with:
106106
name: ${{ matrix.os }}-chef-pytest-result
107107
path: ${{ env.RESULT_PATH }}

.github/workflows/docs_test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ jobs:
1919
runs-on: ubuntu-latest
2020
steps:
2121
- name: Check out the codebase.
22-
uses: actions/checkout@v2
22+
uses: actions/checkout@v3
2323

2424
- name: Set up Go
2525
uses: actions/setup-go@v2
2626
with:
2727
go-version: ${{ env.GO_VERSION }}
2828

2929
- name: Caching dependency
30-
uses: actions/cache@v2
30+
uses: actions/cache@v3
3131
with:
3232
path: |
3333
~/.cache/go-build

0 commit comments

Comments
 (0)