Skip to content

Commit

Permalink
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 f5c244b commit 227a79c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/create.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
- name: Output Milestone Number
if: success()
run: |
echo "The new milestone number is ${{ steps.create.outputs.milestone-number }}"
echo "The new milestone number is ${{ steps.create.outputs.milestone_number }}"
- name: Debug Output
if: failure()
Expand Down
2 changes: 1 addition & 1 deletion action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ inputs:
description: 'The GITHUB_TOKEN secret or personal access token to authenticate. Defaults to `github.token`.'

outputs:
milestone-number:
milestone_number:
description: 'The number of the milestone created or set.'

runs:
Expand Down
2 changes: 1 addition & 1 deletion nu/milestone.nu
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ export def create-milestone [
let milestone = $result | from json
print $'Milestone (ansi p)($milestone.title)(ansi reset) with NO. (ansi p)($milestone.number)(ansi reset) was created successfully.'
print 'Set output for milestone create Github Action:'
echo $'milestone-number=($milestone.number)' | save --append $env.GITHUB_OUTPUT
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 227a79c

Please sign in to comment.