From 55c526394d8e8a89e80c1d1810c14b815fdab3c0 Mon Sep 17 00:00:00 2001 From: Mathieu Tarral Date: Fri, 18 Dec 2020 13:07:28 +0100 Subject: [PATCH] ci: fix get artifact name and path --- .github/workflows/ci.yml | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0f57275d..4b511469 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -323,16 +323,12 @@ jobs: with: name: microvmi_deb - - name: get artifact path - id: artefact_path + - name: get artifact path and name + id: artefact run: | - PATHNAME=$(ls *.deb | head -n 1) + PATHNAME=$(find . -maxdepth 1 -name '*.deb') + NAME=$(basename $PATHNAME) echo ::set-output name=path::${PATHNAME} - - - name: get artifact name - id: artifact_name - run: | - NAME=$(basename ${{ steps.artefact_path.outputs.path }}) echo ::set-output name=name::${NAME} - name: Upload Debian package as Release asset @@ -341,8 +337,8 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ needs.release.outputs.upload_url }} - asset_path: ${{ steps.artefact_path.outputs.path }} - asset_name: ${{ steps.artefact_name.outputs.name }} + asset_path: ${{ steps.artefact.outputs.path }} + asset_name: ${{ steps.artefact.outputs.name }} asset_content_type: application/vnd.debian.binary-package publish: