File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -108,14 +108,22 @@ jobs:
108108 image : ${{ fromJSON(vars.SMOKE_TEST_IMAGES) }}
109109 container : ${{ matrix.image }}
110110 steps :
111+ - name : Extract BUILD_ARCH from matrix.image
112+ run : |
113+ BUILD_ARCH=$(echo ${{ matrix.image }} | cut -d: -f2)
114+ if [ -z "$BUILD_ARCH" ]; then
115+ echo "Error: Failed to extract BUILD_ARCH from matrix.image" >&2
116+ exit 1
117+ fi
118+ echo "BUILD_ARCH=$BUILD_ARCH" >> $GITHUB_ENV
111119 - name : Get binary packages
112120 uses : actions/download-artifact@v4
113121 with :
114- name : binary-${{ matrix.dist }}-${{ env.ARCH }}
122+ name : binary-${{ env.BUILD_ARCH }}-${{ env.ARCH }}
115123 - name : Install packages
116124 run : |
117125 apt-get update
118- cd binary-$(echo $ {{ matrix.image }} | cut -d: -f2) -${{ env.ARCH }} && apt install --yes ./*.deb
126+ cd binary-${{ env.BUILD_ARCH }}-${{ env.ARCH }} && apt install --yes ./*.deb
119127
120128 publish-to-apt :
121129 if : github.event.release.prerelease == false
@@ -133,8 +141,6 @@ jobs:
133141 APT_SIGNING_KEY : ${{ secrets.APT_SIGNING_KEY }}
134142 - name : Get binary packages
135143 uses : actions/download-artifact@v4
136- with :
137- name : binary-${{ matrix.dist }}-${{ env.ARCH }}
138144 - name : Setup ruby
139145 uses : ruby/setup-ruby@v1
140146 with :
You can’t perform that action at this time.
0 commit comments