Skip to content

Commit

Permalink
workflows: handle v4 upload-artifact usage
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Stephens <[email protected]>
  • Loading branch information
patrick-stephens committed Dec 19, 2023
1 parent 5995af2 commit 4b26ee0
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 26 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/call-build-images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ jobs:
shell: bash

- name: Upload the schema
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
path: ./fluent-bit-schema*.json
name: fluent-bit-schema-${{ inputs.version }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/call-build-linux-packages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
SOURCE_FILENAME_PREFIX: source-${{ inputs.version }}

- name: Upload the source artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: source-${{ inputs.version }}
path: source-packages/*
Expand Down Expand Up @@ -132,7 +132,7 @@ jobs:

- name: Replace all special characters with dashes
id: formatted_distro
run:
run: |
output=${INPUT//[\/]/-}
echo "$INPUT --> $output"
echo "replaced=$output" >> "$GITHUB_OUTPUT"
Expand All @@ -151,7 +151,7 @@ jobs:
working-directory: packaging

- name: Upload the ${{ steps.formatted_distro.outputs.replaced }} artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: packages-${{ inputs.version }}-${{ steps.formatted_distro.outputs.replaced }}
path: packaging/packages/
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/call-build-macos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ jobs:
working-directory: build

- name: Upload build packages
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: macos-packages
path: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/call-build-windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,9 @@ jobs:
- name: Upload build packages
# Skip upload if we skipped build.
if: ${{ matrix.config.arch != 'amd64_arm64' || needs.call-build-windows-get-meta.outputs.armSupported == 'true' }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: windows-packages
name: windows-packages-${{ matrix.config.arch }}
path: |
build/*-bit-*.exe
build/*-bit-*.msi
Expand Down Expand Up @@ -198,7 +198,7 @@ jobs:
continue-on-error: true
uses: actions/download-artifact@v4
with:
name: windows-packages
pattern: windows-packages-*
path: artifacts/

- name: Set up Windows checksums
Expand Down
15 changes: 0 additions & 15 deletions .github/workflows/call-integration-image-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,21 +74,6 @@ jobs:
push: true
load: false

- name: Upload the image just in case as an artefact
run: |
docker pull $IMAGE
docker save --output /tmp/pr-image.tar $IMAGE
env:
IMAGE: ${{ steps.meta.outputs.tags }}
shell: bash

- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: pr-${{ github.event.pull_request.number }}-image
path: /tmp/pr-image.tar
if-no-files-found: error

- name: Extract metadata from Github
id: meta-debug
uses: docker/metadata-action@v5
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cron-scorecards-analysis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
publish_results: true

- name: "Upload artifact"
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: SARIF file
path: scorecard-results.sarif
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cron-trivy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ jobs:

# In case we need to analyse the uploaded files for some reason.
- name: Detain results for debug if needed
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: trivy-results-${{ matrix.local_tag }}.sarif
path: trivy-results-${{ matrix.local_tag }}.sarif
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-fuzz.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
language: c
output-sarif: true
- name: Upload Crash
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: failure() && steps.build.outcome == 'success'
with:
name: artifacts
Expand Down

0 comments on commit 4b26ee0

Please sign in to comment.