Skip to content

Commit

Permalink
fix: Fix milestone create output
Browse files Browse the repository at this point in the history
  • Loading branch information
hustcer committed Oct 26, 2024
1 parent cc87b99 commit 41e10b0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions nu/milestone.nu
Original file line number Diff line number Diff line change
Expand Up @@ -181,10 +181,8 @@ export def create-milestone [
let result = gh api -X POST $'/repos/($repo)/milestones' -F $'title=($title)' ...$dueOnArg ...$descArg
let milestone = $result | from json
print $'Milestone (ansi p)($milestone.title)(ansi reset) with NO. (ansi p)($milestone.number)(ansi reset) was created successfully.'
if 'GITHUB_OUTPUT' in $env {
print 'Set output for milestone create Github Action:'
echo $'milestone_number=($milestone.number)' | save --append $env.GITHUB_OUTPUT
}
print 'Set output for milestone create Github Action:'
echo $'milestone_number=($milestone.number)' | save --append $env.GITHUB_OUTPUT
}

# Close milestone for a repository by title or number.
Expand Down

0 comments on commit 41e10b0

Please sign in to comment.