Skip to content

Commit

Permalink
修复远程编译支持预览版发布
Browse files Browse the repository at this point in the history
  • Loading branch information
cngege committed Jan 8, 2025
1 parent cd15a04 commit 69b3026
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,8 @@ jobs:
- name: env_isPrerelease
shell: pwsh
run: |
#$result = ("${{steps.tag.outputs.tag}}" -like "*beta*" -as [string]).ToLower()
$isPrerelease = if("${{steps.tag.outputs.tag}}" -like "*beta*") { "true" } else { "false" }
Add-Content -Path $env:GITHUB_ENV -value "isPrerelease=true"
Add-Content -Path $env:GITHUB_ENV -value "isPrerelease=$isPrerelease"
- name: tree
run: |
echo "output: ${{ env.isPrerelease }}"
Expand Down

0 comments on commit 69b3026

Please sign in to comment.