Skip to content

Commit ac4190e

Browse files
committed
Merge branch 'develop'
2 parents d6f29da + c78d06b commit ac4190e

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

.appveyor.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,24 @@ branches:
1919
- dev
2020

2121
clone_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+
2240
environment:
2341
global:
2442
# Set the DOTNET_SKIP_FIRST_TIME_EXPERIENCE environment variable to stop wasting time caching packages

0 commit comments

Comments
 (0)