From 9a8faf3a8310c90bc760b7e839bcd713d9f04995 Mon Sep 17 00:00:00 2001 From: Paul Hebble Date: Wed, 1 Jul 2020 14:48:53 -0500 Subject: [PATCH] Find the RPM under the dashless path --- .github/workflows/release.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b1d36a86c4..902a83bd62 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -33,6 +33,8 @@ jobs: echo "::set-output name=upload_url::$URL" VERSION=$(wget -qO- https://api.github.com/repos/$GITHUB_REPOSITORY/releases | jq '.[0].tag_name' | tr -d \"v) echo "::set-output name=version::$VERSION" + RPM_VERSION=$(echo $VERSION | sed -e 's/-/_/g') + echo "::set-output name=rpm_version::$RPM_VERSION" - name: Upload ckan.exe uses: actions/upload-release-asset@v1.0.1 env: @@ -66,8 +68,8 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: upload_url: ${{ steps.release_data.outputs.upload_url }} - asset_path: _build/rpm/RPMS/noarch/ckan-${{ steps.release_data.outputs.version }}-1.noarch.rpm - asset_name: ckan-${{ steps.release_data.outputs.version }}-1.noarch.rpm + asset_path: _build/rpm/RPMS/noarch/ckan-${{ steps.release_data.outputs.rpm_version }}-1.noarch.rpm + asset_name: ckan-${{ steps.release_data.outputs.rpm_version }}-1.noarch.rpm asset_content_type: application/x-rpm - name: Upload AutoUpdater.exe uses: actions/upload-release-asset@v1.0.1