Skip to content

Commit

Permalink
ci
Browse files Browse the repository at this point in the history
  • Loading branch information
ledouxm committed Jan 10, 2025
1 parent 2b97c46 commit 2964041
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,9 @@ jobs:
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
$isPrerelease = ""
$isPrerelease = $false
if ("${{ github.event_name }}" -eq "workflow_dispatch") {
$isPrerelease = "--prerelease"
$isPrerelease = $true
}
$notes = "Quick links:`n"
Expand All @@ -144,7 +144,7 @@ jobs:
$notes += "- Dofus obfuscated proto file`n`n"
$notes += "This release is auto-generated."
gh release create "v${{ needs.check-version.outputs.release_tag }}" --title "Release ${{ needs.check-version.outputs.release_tag }}" --notes "$notes" --draft=false $isPrerelease
gh release create "v${{ needs.check-version.outputs.release_tag }}" --title "Release ${{ needs.check-version.outputs.release_tag }}" --notes "$notes" --draft=false $(if ($isPrerelease) {"--prerelease"})
- name: Upload Release Assets
env:
Expand Down

0 comments on commit 2964041

Please sign in to comment.