Skip to content

Commit db38f77

Browse files
workflows: handle v4 upload-artifact usage (#8304)
Signed-off-by: Patrick Stephens <pat@calyptia.com>
1 parent 5995af2 commit db38f77

8 files changed

+11
-26
lines changed

.github/workflows/call-build-images.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ jobs:
181181
shell: bash
182182

183183
- name: Upload the schema
184-
uses: actions/upload-artifact@v3
184+
uses: actions/upload-artifact@v4
185185
with:
186186
path: ./fluent-bit-schema*.json
187187
name: fluent-bit-schema-${{ inputs.version }}

.github/workflows/call-build-linux-packages.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ jobs:
7878
SOURCE_FILENAME_PREFIX: source-${{ inputs.version }}
7979

8080
- name: Upload the source artifacts
81-
uses: actions/upload-artifact@v3
81+
uses: actions/upload-artifact@v4
8282
with:
8383
name: source-${{ inputs.version }}
8484
path: source-packages/*
@@ -132,7 +132,7 @@ jobs:
132132

133133
- name: Replace all special characters with dashes
134134
id: formatted_distro
135-
run:
135+
run: |
136136
output=${INPUT//[\/]/-}
137137
echo "$INPUT --> $output"
138138
echo "replaced=$output" >> "$GITHUB_OUTPUT"
@@ -151,7 +151,7 @@ jobs:
151151
working-directory: packaging
152152

153153
- name: Upload the ${{ steps.formatted_distro.outputs.replaced }} artifacts
154-
uses: actions/upload-artifact@v3
154+
uses: actions/upload-artifact@v4
155155
with:
156156
name: packages-${{ inputs.version }}-${{ steps.formatted_distro.outputs.replaced }}
157157
path: packaging/packages/

.github/workflows/call-build-macos.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ jobs:
9090
working-directory: build
9191

9292
- name: Upload build packages
93-
uses: actions/upload-artifact@v3
93+
uses: actions/upload-artifact@v4
9494
with:
9595
name: macos-packages
9696
path: |

.github/workflows/call-build-windows.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,9 @@ jobs:
168168
- name: Upload build packages
169169
# Skip upload if we skipped build.
170170
if: ${{ matrix.config.arch != 'amd64_arm64' || needs.call-build-windows-get-meta.outputs.armSupported == 'true' }}
171-
uses: actions/upload-artifact@v3
171+
uses: actions/upload-artifact@v4
172172
with:
173-
name: windows-packages
173+
name: windows-packages-${{ matrix.config.arch }}
174174
path: |
175175
build/*-bit-*.exe
176176
build/*-bit-*.msi
@@ -198,7 +198,7 @@ jobs:
198198
continue-on-error: true
199199
uses: actions/download-artifact@v4
200200
with:
201-
name: windows-packages
201+
pattern: windows-packages-*
202202
path: artifacts/
203203

204204
- name: Set up Windows checksums

.github/workflows/call-integration-image-build.yaml

-15
Original file line numberDiff line numberDiff line change
@@ -74,21 +74,6 @@ jobs:
7474
push: true
7575
load: false
7676

77-
- name: Upload the image just in case as an artefact
78-
run: |
79-
docker pull $IMAGE
80-
docker save --output /tmp/pr-image.tar $IMAGE
81-
env:
82-
IMAGE: ${{ steps.meta.outputs.tags }}
83-
shell: bash
84-
85-
- name: Upload artifact
86-
uses: actions/upload-artifact@v3
87-
with:
88-
name: pr-${{ github.event.pull_request.number }}-image
89-
path: /tmp/pr-image.tar
90-
if-no-files-found: error
91-
9277
- name: Extract metadata from Github
9378
id: meta-debug
9479
uses: docker/metadata-action@v5

.github/workflows/cron-scorecards-analysis.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
publish_results: true
4646

4747
- name: "Upload artifact"
48-
uses: actions/upload-artifact@v3
48+
uses: actions/upload-artifact@v4
4949
with:
5050
name: SARIF file
5151
path: scorecard-results.sarif

.github/workflows/cron-trivy.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ jobs:
8080

8181
# In case we need to analyse the uploaded files for some reason.
8282
- name: Detain results for debug if needed
83-
uses: actions/upload-artifact@v3
83+
uses: actions/upload-artifact@v4
8484
with:
8585
name: trivy-results-${{ matrix.local_tag }}.sarif
8686
path: trivy-results-${{ matrix.local_tag }}.sarif

.github/workflows/pr-fuzz.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
language: c
2727
output-sarif: true
2828
- name: Upload Crash
29-
uses: actions/upload-artifact@v3
29+
uses: actions/upload-artifact@v4
3030
if: failure() && steps.build.outcome == 'success'
3131
with:
3232
name: artifacts

0 commit comments

Comments
 (0)