From 63ee901c1d311db7e89e380fe2c545480bee5f26 Mon Sep 17 00:00:00 2001 From: "Filipe Oliveira (Personal)" Date: Thu, 21 Nov 2024 08:37:39 +0000 Subject: [PATCH] Fixed artifact download and upload steps to match v4 requirements (#277) --- .github/workflows/release.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 14b9935..4b0c14e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -108,14 +108,22 @@ jobs: image: ${{ fromJSON(vars.SMOKE_TEST_IMAGES) }} container: ${{ matrix.image }} steps: + - name: Extract BUILD_ARCH from matrix.image + run: | + BUILD_ARCH=$(echo ${{ matrix.image }} | cut -d: -f2) + if [ -z "$BUILD_ARCH" ]; then + echo "Error: Failed to extract BUILD_ARCH from matrix.image" >&2 + exit 1 + fi + echo "BUILD_ARCH=$BUILD_ARCH" >> $GITHUB_ENV - name: Get binary packages uses: actions/download-artifact@v4 with: - name: binary-${{ matrix.dist }}-${{ env.ARCH }} + name: binary-${{ env.BUILD_ARCH }}-${{ env.ARCH }} - name: Install packages run: | apt-get update - cd binary-$(echo ${{ matrix.image }} | cut -d: -f2)-${{ env.ARCH }} && apt install --yes ./*.deb + cd binary-${{ env.BUILD_ARCH }}-${{ env.ARCH }} && apt install --yes ./*.deb publish-to-apt: if: github.event.release.prerelease == false @@ -133,8 +141,6 @@ jobs: APT_SIGNING_KEY: ${{ secrets.APT_SIGNING_KEY }} - name: Get binary packages uses: actions/download-artifact@v4 - with: - name: binary-${{ matrix.dist }}-${{ env.ARCH }} - name: Setup ruby uses: ruby/setup-ruby@v1 with: