Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
developer-wlj authored Sep 3, 2023
1 parent 71fae81 commit 7a23afb
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,19 @@ jobs:
$jxxghp_version=$response.object.sha
echo $jxxghp_version
if ($newArray -contains $jxxghp_version) {
Write-Output "检测到新的commit 执行重新打包"
} else {
Write-Output "developer-wlj/MoviePilot需要手动同步上游仓库"
exit 1
$response2 = Invoke-WebRequest -Uri https://api.github.com/repos/developer-wlj/MoviePilot/releases/latest | ConvertFrom-Json
# 提取tag_name的值
$tagName = $response2.tag_name.Substring(0, 7)
echo $tagName
if ($tagName -eq $jxxghp_version){
Write-Output "版本相同,无需更新"
exit 1
} else {
Write-Output "检测到新的commit 执行重新打包"
}
else {
Write-Output "developer-wlj/MoviePilot需要手动同步上游仓库"
exit 1
}

- name: 拉取exe代码
Expand Down

0 comments on commit 7a23afb

Please sign in to comment.