Skip to content

Commit 95a901e

Browse files
committed
ci: Update local NuGet repository condition for non-release versions
1 parent eee3f47 commit 95a901e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,9 @@ jobs:
8181
with:
8282
global-json-file: "./global.json"
8383

84-
# Add local NuGet repository so that we can use internal pre-release versions
85-
- name: Add local NuGet repository for prerelease versions
86-
if: ${{ github.event.inputs.version && (contains(github.event.inputs.version, 'prerelease') || contains(github.event.inputs.version, 'alpha') || contains(github.event.inputs.version, 'beta') || contains(github.event.inputs.version, 'rc')) }}
84+
# Add local NuGet repository if version is not a plain release (i.e., has a suffix, e.g., -prerelease)
85+
- name: Add local NuGet repository for non-release versions
86+
if: ${{ github.event.inputs.version && (contains(github.event.inputs.version, '-')) }}
8787
run: dotnet nuget add source --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/Yubico/index.json"
8888

8989
- name: Set build version

0 commit comments

Comments
 (0)