Skip to content

Commit

Permalink
Use another syntax for variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
marcovisserFurore committed Sep 26, 2023
1 parent 3ea0075 commit 75036a9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion build/azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,14 @@ stages:
inputs:
versionSpec: '6.4.0'

- ${{ if eq(variables['UseGitHubPackageFeed'], 'true') }}:
- ${{ if eq($[variables.UseGitHubPackageFeed], 'true') }}:
- template: restore.yml@templates
parameters:
nuGetServiceConnections: GitHubPackageGetFeed
nuGetSources: --source https://nuget.pkg.github.com/FirelyTeam/index.json

- script: dotnet restore --source https://api.nuget.org/v3/index.json
displayName: 'dotnet restore'
condition: and(succeeded(), eq(variables.UseGitHubPackageFeed, 'false'))

- task: DotNetCoreCLI@2
Expand Down
2 changes: 1 addition & 1 deletion build/pipeline-variables.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ variables:
isTagBranch: $[startswith(variables['Build.SourceBranch'], 'refs/tags/v')]
GITHUB_PACKAGES_APIKEY: $(GitHubPushPackagesAPIKey) # key is set in variable group APIKeys
NUGET_APIKEY: $(NuGetSDKAPIKey) # key is set in variable group APIKeys
USE_GITHUB_PACKAGEFEED: $(UseGitHubPackageFeed) # key is set in the pipeline UI
GITHUB_PACKAGEFEED: $[eq(variables['UseGitHubPackageFeed'], 'true')] # key is set in the pipeline UI

0 comments on commit 75036a9

Please sign in to comment.