Skip to content

Commit

Permalink
Update dotnet.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Hugo do Nascimento committed Apr 17, 2023
1 parent 414e5c4 commit 4c0229c
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,19 +116,13 @@ jobs:
with:
result-encoding: string
script: |
version=${{ needs.check_version.outputs.version }}
parts=(${version//-/ })
isPrerelease=false
if [ "${#parts[@]}" -eq 2 ] && [ -n "${parts[1]}" ]; then
isPrerelease=true
else
isPrerelease=false
fi
const version = '${{ needs.check_version.outputs.version }}';
const parts = version.split('-');
const isPreRelease = parts.length > 1;
github.rest.repos.createRelease({
owner: context.repo.owner,
repo: context.repo.repo,
tag_name: 'v${{ needs.check_version.outputs.version }}',
prerelease: $isPrerelease
prerelease: isPreRelease
})

0 comments on commit 4c0229c

Please sign in to comment.