From 4de193753552ce861630731f03ea851d5f5c398c Mon Sep 17 00:00:00 2001 From: Tristan Labelle Date: Wed, 1 Nov 2023 16:06:18 -0400 Subject: [PATCH] Fix github actions expression syntax (#120) --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 1934769c..ab7ded42 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -16,7 +16,7 @@ jobs: NUGET_PACKAGE_VERSION_MAJOR: 0 NUGET_PACKAGE_VERSION_MINOR: 1 NUGET_PACKAGE_VERSION_PATCH: ${{ github.run_number }} - NUGET_PACKAGE_VERSION_PRERELEASE_SUFFIX: ${{ github.event.inputs.version_prerelease_identifier && '' || '-' }}${{ github.event.inputs.version_prerelease_identifier }} + NUGET_PACKAGE_VERSION_PRERELEASE_SUFFIX: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.version_prerelease_identifier != '' && format('-{0}', github.event.inputs.version_prerelease_identifier) || '' }} runs-on: windows-2022 name: Swift/WinRT Release Build & Publish permissions: