Skip to content

Commit

Permalink
chore: upgrade actions/download-artifact and `actions/upload-artifa…
Browse files Browse the repository at this point in the history
…ct` to v4 (#1405)
  • Loading branch information
andrzej-stencel committed Dec 28, 2023
1 parent 05adfac commit af34232
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 20 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/dev_builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}}

Expand All @@ -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 }}

Expand Down Expand Up @@ -243,7 +243,7 @@ jobs:
uses: microsoft/[email protected]

- 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
Expand All @@ -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
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/pull_requests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand All @@ -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/
Expand Down
26 changes: 13 additions & 13 deletions .github/workflows/release_builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down Expand Up @@ -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 }}
Expand Down Expand Up @@ -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 }}
Expand Down Expand Up @@ -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/
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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/

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/workflow-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit af34232

Please sign in to comment.