File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed
Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,24 @@ branches:
1919 - dev
2020
2121clone_depth : 1
22+ init :
23+ - ps : >-
24+ if ($env:APPVEYOR_REPO_TAG_NAME) {
25+ $headers = @{
26+ "Authorization" = "Bearer $env:GITHUB_TOKEN"
27+ "Content-type" = "application/json"
28+ }
29+ $releases = Invoke-RestMethod -Uri "https://api.github.com/repos/$env:APPVEYOR_REPO_NAME/releases" -Headers $headers -Method GET
30+ $env:releaseDescription = ($releases | Where-Object {$_.name -eq "$env:APPVEYOR_REPO_TAG_NAME"}).body
31+ if ($env:APPVEYOR_REPO_TAG_NAME -like "-") {
32+ $env:isPrerelease = "true"
33+ } else {
34+ $env:isPrerelease = "false"
35+ }
36+ echo ("isPrerelease: " + $env:isPrerelease)
37+ echo ("description: " + $env:releaseDescription)
38+ }
39+
2240environment :
2341 global :
2442 # Set the DOTNET_SKIP_FIRST_TIME_EXPERIENCE environment variable to stop wasting time caching packages
You can’t perform that action at this time.
0 commit comments