Skip to content

Commit afef426

Browse files
committed
ci: fix deprecation of action/upload-artifact v3
1 parent af9a541 commit afef426

File tree

2 files changed

+9
-19
lines changed

2 files changed

+9
-19
lines changed

.github/workflows/pr-code.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ jobs:
7272
go tool cover -html=coverage.cov -o coverage.html
7373
7474
- name: Archive code coverage results
75-
uses: actions/upload-artifact@v4
75+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
7676
with:
7777
name: code-coverage-report
7878
path: coverage.html

.github/workflows/release.yml

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -257,9 +257,9 @@ jobs:
257257
open(sum_path, 'x').write(hex_sum)
258258
259259
- name: Upload assets to artifact
260-
uses: actions/upload-artifact@v3
260+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
261261
with:
262-
name: binaries
262+
name: build-${{ matrix.goos }}-${{ matrix.goarch }}
263263
path: assets/*
264264
retention-days: 1
265265

@@ -287,10 +287,11 @@ jobs:
287287
persist-credentials: false
288288

289289
- name: Retrieve assets from artifact
290-
uses: actions/download-artifact@v3
290+
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
291291
with:
292-
name: binaries
293292
path: assets
293+
pattern: build-*
294+
merge-multiple: true
294295

295296
- name: Run semantic-release
296297
id: release
@@ -407,10 +408,11 @@ jobs:
407408
password: ${{ secrets.QUAY_ROBOT_TOKEN }}
408409

409410
- name: Retrieve assets from artifact
410-
uses: actions/download-artifact@v3
411+
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
411412
with:
412-
name: binaries
413413
path: assets
414+
pattern: build-*
415+
merge-multiple: true
414416

415417
- name: Build container images from binary assets
416418
id: build-oci
@@ -745,15 +747,3 @@ jobs:
745747
746748
action('update repository index')
747749
run(os.environ['CR_PATH'], 'index', '--push', '-i', 'index.yaml', '--owner', 'enix', '--git-repo', 'helm-charts', cwd=charts_repo)
748-
749-
cleanup:
750-
name: Cleanup
751-
needs:
752-
- draft-release
753-
- containers
754-
runs-on: ubuntu-22.04
755-
steps:
756-
- name: Delete assets artifact
757-
uses: geekyeggo/delete-artifact@v5
758-
with:
759-
name: binaries

0 commit comments

Comments
 (0)