Skip to content

Commit a63b134

Browse files
authored
Migrate the deprecated (v3) download/upload artifact actions to v4 (#2079)
Summary: Migrate the deprecated (v3) download/upload artifact actions to v4 These are slated for deprecation on Jan 30th, but GitHub is failing builds already for using these old versions (output copied below). > Error: This request has been automatically failed because it uses a deprecated version of `actions/upload-artifact: 0b7f8abb1508181956e8e162db84b466c27e18ce`. Learn more: https://github.blog/changelog/2024-04-16-deprecation-notice-v3-of-the-artifact-actions/ The breaking changes are described [here](https://github.com/actions/download-artifact/blob/7fba95161a0924506ed1ae69cdbae8371ee00b3f/docs/MIGRATION.md#migration) and upon review I don't believe those cases are relevant to our workflows. Relevant Issues: N/A Type of change: /kind cleanup Test Plan: PR build should succeed. As for others, I was planning to wait until releases happen Signed-off-by: Dom Del Nano <ddelnano@gmail.com>
1 parent 534b892 commit a63b134

File tree

8 files changed

+31
-31
lines changed

8 files changed

+31
-31
lines changed

.github/workflows/build_and_test.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ jobs:
112112
echo "Build & Test matrix: ${matrix}"
113113
echo "matrix=${matrix}" >> $GITHUB_OUTPUT
114114
- name: Upload Target Files
115-
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
115+
- uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
116116
with:
117117
name: target_files
118118
path: |
@@ -138,7 +138,7 @@ jobs:
138138
ref: ${{ needs.env-protect-setup.outputs.ref }}
139139
- name: Add pwd to git safe dir
140140
run: git config --global --add safe.directory `pwd`
141-
- uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
141+
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
142142
- name: get bazel config
143143
uses: ./.github/actions/bazelrc
144144
with:

.github/workflows/cli_release.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ jobs:
6262
./ci/save_version_info.sh
6363
./ci/cli_build_release.sh
6464
- name: Upload Github Artifacts
65-
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
65+
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
6666
with:
6767
name: linux-artifacts
6868
path: artifacts/
@@ -73,7 +73,7 @@ jobs:
7373
MANIFEST_UPDATES: ""
7474
GOOGLE_APPLICATION_CREDENTIALS: ${{ steps.gcloud-creds.outputs.gcloud-creds }}
7575
run: ./ci/update_artifact_manifest.sh
76-
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
76+
- uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
7777
with:
7878
name: artifact-upload-log
7979
path: ${{ env.ARTIFACT_UPLOAD_LOG }}
@@ -104,7 +104,7 @@ jobs:
104104
mkdir -p "artifacts/"
105105
export ARTIFACTS_DIR="$(pwd)/artifacts"
106106
./ci/cli_merge_sign.sh
107-
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
107+
- uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
108108
with:
109109
name: macos-artifacts
110110
path: artifacts/
@@ -120,10 +120,10 @@ jobs:
120120
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v3.5.0
121121
with:
122122
fetch-depth: 0
123-
- uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
123+
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
124124
with:
125125
name: macos-artifacts
126-
- uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
126+
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
127127
with:
128128
name: artifact-upload-log
129129
- name: Import GPG key
@@ -150,11 +150,11 @@ jobs:
150150
mkdir -p "artifacts/"
151151
export ARTIFACTS_DIR="$(pwd)/artifacts"
152152
./ci/cli_upload_signed.sh
153-
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
153+
- uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
154154
with:
155155
name: macos-artifacts
156156
path: artifacts/
157-
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
157+
- uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
158158
with:
159159
name: manifest-updates
160160
path: ${{ env.MANIFEST_UPDATES }}
@@ -168,7 +168,7 @@ jobs:
168168
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v3.5.0
169169
with:
170170
fetch-depth: 0
171-
- uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
171+
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
172172
- name: Create Release
173173
env:
174174
REF: ${{ github.event.ref }}
@@ -221,7 +221,7 @@ jobs:
221221
git config --global user.email 'build@pixielabs.ai'
222222
git config --global user.signingkey "${BUILDBOT_GPG_KEY_ID}"
223223
git config --global commit.gpgsign true
224-
- uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
224+
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
225225
id: download-artifact
226226
with:
227227
name: manifest-updates

.github/workflows/cloud_release.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
mkdir -p "${ARTIFACTS_DIR}"
5757
./ci/save_version_info.sh
5858
./ci/cloud_build_release.sh
59-
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
59+
- uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
6060
with:
6161
name: cloud-artifacts
6262
path: artifacts/
@@ -71,7 +71,7 @@ jobs:
7171
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v3.5.0
7272
with:
7373
fetch-depth: 0
74-
- uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
74+
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
7575
- name: Create Release
7676
env:
7777
REF: ${{ github.event.ref }}

.github/workflows/operator_release.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,15 +67,15 @@ jobs:
6767
MANIFEST_UPDATES: ""
6868
GOOGLE_APPLICATION_CREDENTIALS: ${{ steps.gcloud-creds.outputs.gcloud-creds }}
6969
run: ./ci/update_artifact_manifest.sh
70-
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
70+
- uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
7171
with:
7272
name: manifest-updates
7373
path: ${{ env.MANIFEST_UPDATES }}
74-
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
74+
- uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
7575
with:
7676
name: operator-artifacts
7777
path: artifacts/
78-
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
78+
- uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
7979
with:
8080
name: index-artifacts
8181
path: index.yaml
@@ -89,7 +89,7 @@ jobs:
8989
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v3.5.0
9090
with:
9191
fetch-depth: 0
92-
- uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
92+
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
9393
- name: Create Release
9494
env:
9595
REF: ${{ github.event.ref }}
@@ -121,7 +121,7 @@ jobs:
121121
with:
122122
fetch-depth: 0
123123
ref: gh-pages
124-
- uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
124+
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
125125
- name: Setup git
126126
shell: bash
127127
env:
@@ -175,7 +175,7 @@ jobs:
175175
git config --global user.email 'build@pixielabs.ai'
176176
git config --global user.signingkey "${BUILDBOT_GPG_KEY_ID}"
177177
git config --global commit.gpgsign true
178-
- uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
178+
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
179179
id: download-artifact
180180
with:
181181
name: manifest-updates

.github/workflows/perf_common.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ jobs:
107107
run: gcloud auth revoke
108108
# Github actions doesn't have native support for gathering outputs from matrix runs.
109109
# So we upload an artifact for each one and gather them ourselves in `get-perf-outputs`.
110-
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
110+
- uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
111111
with:
112112
name: ${{ hashFiles('run_output') }}
113113
path: run_output
@@ -119,7 +119,7 @@ jobs:
119119
outputs:
120120
experiments: ${{ steps.get-outputs.outputs.run_output }}
121121
steps:
122-
- uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
122+
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
123123
- id: get-outputs
124124
run: |
125125
all_run_output="$(cat */run_output | jq --slurp -c '.[]')"

.github/workflows/release_update_docs_px_dev.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
run: |
3131
bazel run src/carnot/docstring:docstring -- \
3232
--output_json=$(pwd)/pxl_documentation.json
33-
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
33+
- uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
3434
with:
3535
name: pxl_documentation
3636
path: pxl_documentation.json
@@ -68,7 +68,7 @@ jobs:
6868
git config --global user.name 'pixie-io-buildbot'
6969
git config --global user.email 'build@pixielabs.ai'
7070
git remote add fork git@github.com:pixie-io-buildbot/docs.px.dev.git
71-
- uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
71+
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
7272
with:
7373
name: pxl_documentation
7474
path: external/

.github/workflows/update_script_bundle.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
export PATH="$PATH:$(pwd)"
3535
cd src/pxl_scripts
3636
make bundle-oss.json
37-
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
37+
- uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
3838
with:
3939
name: bundle
4040
path: src/pxl_scripts/bundle-oss.json
@@ -50,7 +50,7 @@ jobs:
5050
with:
5151
fetch-depth: 0
5252
ref: gh-pages
53-
- uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
53+
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
5454
- name: Import GPG key
5555
env:
5656
BUILDBOT_GPG_KEY_B64: ${{ secrets.BUILDBOT_GPG_KEY_B64 }}

.github/workflows/vizier_release.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,15 @@ jobs:
7474
MANIFEST_UPDATES: ""
7575
GOOGLE_APPLICATION_CREDENTIALS: ${{ steps.gcloud-creds.outputs.gcloud-creds }}
7676
run: ./ci/update_artifact_manifest.sh
77-
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
77+
- uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
7878
with:
7979
name: manifest-updates
8080
path: ${{ env.MANIFEST_UPDATES }}
81-
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
81+
- uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
8282
with:
8383
name: vizier-artifacts
8484
path: artifacts/
85-
- uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
85+
- uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
8686
with:
8787
name: index-artifacts
8888
path: index.yaml
@@ -96,7 +96,7 @@ jobs:
9696
- uses: actions/checkout@8f4b7f84864484a7bf31766abe9204da3cbe65b3 # v3.5.0
9797
with:
9898
fetch-depth: 0
99-
- uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
99+
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
100100
- name: Create Release
101101
env:
102102
REF: ${{ github.event.ref }}
@@ -128,7 +128,7 @@ jobs:
128128
with:
129129
fetch-depth: 0
130130
ref: gh-pages
131-
- uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
131+
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
132132
- name: Setup git
133133
shell: bash
134134
env:
@@ -182,7 +182,7 @@ jobs:
182182
git config --global user.email 'build@pixielabs.ai'
183183
git config --global user.signingkey "${BUILDBOT_GPG_KEY_ID}"
184184
git config --global commit.gpgsign true
185-
- uses: actions/download-artifact@9bc31d5ccc31df68ecc42ccf4149144866c47d8a # v3.0.2
185+
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
186186
id: download-artifact
187187
with:
188188
name: manifest-updates

0 commit comments

Comments
 (0)