From 230e509e6bde34c046d1cd5f1bcfbb77b0a94497 Mon Sep 17 00:00:00 2001 From: Robert Foster Date: Tue, 6 Dec 2022 20:11:49 +1100 Subject: [PATCH] fix deployment workflow --- .github/workflows/release.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4cd1112..fb925be 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,13 +26,13 @@ jobs: - name: Check Version v${{ steps.package_version.outputs.version }} Pre-Release state id: check_prerelease run: | - if ('${{ steps.package_version.outputs.version }}' -match '^[0-9]+\.[0-9]+\.[0-9]+-.+$') { - echo "Pre-Release detected" - echo "::set-output name=prerelease::true" - } else { - "echo Pre-Release NOT detected" - echo "::set-output name=prerelease::false" - } + if [[ ${{ steps.package_version.outputs.version }} =~ ^[0-9]+\.[0-9]+\.[0-9]+-.+$ ]]; then + echo Pre-Release detected + echo ::set-output name=prerelease::true + else + echo Pre-Release NOT detected + echo ::set-output name=prerelease::false + fi - name: Setup .NET Core SDK 6.x uses: actions/setup-dotnet@v3 @@ -70,5 +70,5 @@ jobs: - name: Release information for v${{ steps.package_version.outputs.version }} run: | echo Release Id: ${{ steps.release.outputs.id }} - echo Upload URL: "${{ steps.release.outputs.upload_url }}" - echo Release URL: "${{ steps.release.outputs.html_url }}" + echo Upload URL: ${{ steps.release.outputs.upload_url }} + echo Release URL: ${{ steps.release.outputs.html_url }}