From af34232444edb9b8072c2d949def58571b0cdb32 Mon Sep 17 00:00:00 2001 From: Andrzej Stencel Date: Thu, 28 Dec 2023 13:37:50 +0100 Subject: [PATCH] chore: upgrade `actions/download-artifact` and `actions/upload-artifact` to v4 (#1405) --- .github/workflows/dev_builds.yml | 8 ++++---- .github/workflows/pull_requests.yml | 4 ++-- .github/workflows/release_builds.yml | 26 +++++++++++++------------- .github/workflows/workflow-build.yml | 2 +- 4 files changed, 20 insertions(+), 20 deletions(-) diff --git a/.github/workflows/dev_builds.yml b/.github/workflows/dev_builds.yml index 550442e438..342b5048f2 100644 --- a/.github/workflows/dev_builds.yml +++ b/.github/workflows/dev_builds.yml @@ -151,7 +151,7 @@ jobs: AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY_DEV }} - name: Download FIPS binary action artifact from build phase - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: otelcol-sumo-fips-${{matrix.arch_os}} @@ -164,7 +164,7 @@ jobs: LATEST_TAG_FIPS_SUFFIX="-fips" - name: Download binary action artifact from build phase - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: otelcol-sumo-${{ matrix.arch_os }} @@ -243,7 +243,7 @@ jobs: uses: microsoft/setup-msbuild@v1.3 - name: Fetch binary artifact for ${{ matrix.arch_os }} - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: otelcol-sumo${{ matrix.fips && '-fips' || '' }}-${{ matrix.arch_os }}.exe path: ./otelcolbuilder/cmd @@ -264,7 +264,7 @@ jobs: run: msbuild.exe -p:Configuration=Release -p:Platform=${{ matrix.platform }} -p:ProductVersion=$PRODUCT_VERSION -p:FIPSEnabled=${{ matrix.fips }} -Restore - name: Store MSI as action artifact for ${{ matrix.arch_os }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{ matrix.arch_os }}${{ matrix.fips && '_fips' || '' }}_msi path: ./packaging/msi/wix/bin/${{ matrix.platform }}/en-US/*.msi diff --git a/.github/workflows/pull_requests.yml b/.github/workflows/pull_requests.yml index 87f1edcebf..0a660f3af5 100644 --- a/.github/workflows/pull_requests.yml +++ b/.github/workflows/pull_requests.yml @@ -326,7 +326,7 @@ jobs: - name: Download binary action artifact from build phase if: steps.changed-files.outputs.any_changed == 'true' - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: otelcol-sumo-${{matrix.arch_os}} path: artifacts/ @@ -344,7 +344,7 @@ jobs: - name: Download FIPS binary action artifact from build phase if: steps.changed-files.outputs.any_changed == 'true' && matrix.arch_os == 'linux_amd64' - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: otelcol-sumo-fips-${{matrix.arch_os}} path: artifacts/ diff --git a/.github/workflows/release_builds.yml b/.github/workflows/release_builds.yml index 5d4b212f6f..2ecc18938b 100644 --- a/.github/workflows/release_builds.yml +++ b/.github/workflows/release_builds.yml @@ -125,7 +125,7 @@ jobs: folder: ./otelcolbuilder/cmd - name: Store binary as action artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{matrix.arch_os}}${{ matrix.fips && '_fips' || '' }} path: ./otelcolbuilder/cmd/${{ steps.set_filename.outputs.filename }} @@ -210,14 +210,14 @@ jobs: # Store binary and .dmg into pipeline artifacts after they have been signed - name: Store .dmg as action artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{matrix.arch_os}}.dmg path: ./otelcolbuilder/cmd/${{ steps.set_filename.outputs.filename }}.dmg if-no-files-found: error - name: Store binary as action artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{matrix.arch_os}} path: ./otelcolbuilder/cmd/${{ steps.set_filename.outputs.filename }} @@ -277,7 +277,7 @@ jobs: grep "_Cfunc__goboringcrypto_" - name: Store binary as action artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{matrix.arch_os}} path: ./otelcolbuilder/cmd/${{ steps.set_filename.outputs.filename }} @@ -327,7 +327,7 @@ jobs: AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - name: Download binary action artifact from build phase (regular binary and FIPS binary) - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: ${{matrix.arch_os}} path: artifacts/ @@ -426,7 +426,7 @@ jobs: run: echo "${{ steps.extract_tag.outputs.tag }}" - name: Fetch binary artifact for ${{ matrix.arch_os }} - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: windows_amd64_fips path: ./otelcolbuilder/cmd @@ -456,7 +456,7 @@ jobs: folder: ./packaging/msi/wix/bin/${{ matrix.platform }}/en-US - name: Store MSI as action artifact for ${{ matrix.arch_os }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{ matrix.arch_os }}${{ matrix.fips && '_fips' || '' }}_msi path: ./packaging/msi/wix/bin/${{ matrix.platform }}/en-US/*.msi @@ -472,14 +472,14 @@ jobs: run: ./ci/fetch_current_branch.sh - name: Store Linux install script as action artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: install.sh path: ./scripts/install.sh if-no-files-found: error - name: Store Windows install script as action artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: install.ps1 path: ./scripts/install.ps1 @@ -505,21 +505,21 @@ jobs: # Users can download it via the "latest/download" redirect. - name: Store Chef cookbook archive as action artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: chef-cookbook.tar.gz path: ./examples/chef/chef-cookbook.tar.gz if-no-files-found: error - name: Store Puppet module archive as action artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: puppet-module.tar.gz path: ./examples/puppet/puppet-module.tar.gz if-no-files-found: error - name: Store Ansible playbook archive as action artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ansible-playbook.tar.gz path: ./examples/ansible-playbook.tar.gz @@ -544,7 +544,7 @@ jobs: run: echo "v${{ steps.extract_tag.outputs.tag }}" - name: Download all binaries stored as artifact - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: path: artifacts/ diff --git a/.github/workflows/workflow-build.yml b/.github/workflows/workflow-build.yml index e367a58405..8e3a43f8b5 100644 --- a/.github/workflows/workflow-build.yml +++ b/.github/workflows/workflow-build.yml @@ -193,7 +193,7 @@ jobs: - name: Store binary as action artifact if: ${{ ! inputs.only-if-changed || steps.changed-files.outputs.any_changed == 'true' }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{ steps.set-binary-name.outputs.binary_name }} path: ./otelcolbuilder/cmd/${{ steps.set-binary-name.outputs.binary_name }}