Skip to content

Commit

Permalink
fix get-variable issue in deploy stage
Browse files Browse the repository at this point in the history
  • Loading branch information
gaelcolas committed Oct 14, 2019
1 parent 4bd752e commit de5d86b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .build/tasks/New-Release.GitHub.build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ task Create_ChangeLog_GitHub_PR -if ($GitHubToken) {
# # git checkout --progress --force (git rev-parse origin/master)

foreach ($GitHubConfigKey in @('GitHubFilesToAdd', 'GitHubConfigUserName','GitHubConfigUserEmail','UpdateChangelogOnPrerelease')) {
if ( -Not (Get-Variable -Name $GitHubConfigKey -ValueOnly)) {
if ( -Not (Get-Variable -Name $GitHubConfigKey -ValueOnly -ErrorAction SilentlyContinue)) {
# Variable is not set in context, use $BuildInfo.GitHubConfig.<varName>
$ConfigValue = $BuildInfo.GitHubConfig.($GitHubConfigKey)
Set-Variable -Name $GitHubConfigKey -Value $ConfigValue
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Fixed

- Fixing Create ChangeLog PR Get-Variable
- fixing versioning by reverting to gitversions' continuousDeployment mode
- fixed #22: marking github releases as pre-release when there's a PreReleaseTag
- fix call to add assets to GH release.
Expand Down

0 comments on commit de5d86b

Please sign in to comment.