File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -26,13 +26,13 @@ jobs:
2626 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
2727 run : |
2828 # Get the PR information
29- PR_DATA =$(gh pr view ${{ github.event.pull_request.number }} --json milestone --jq '.milestone' )
29+ PR_MILESTONE =$(gh pr view ${{ github.event.pull_request.number }} --json milestone --jq '.milestone.title' || echo "null" )
3030
3131 # If the milestone is null, fail the workflow
32- if [ "$PR_DATA " == "null" ]; then
32+ if [ "$PR_MILESTONE " == "null" ]; then
3333 echo "❌ The pull request does not have a milestone assigned."
3434 exit 1
3535 fi
36-
36+
3737 # Output the milestone if it exists
38- echo "✅ The pull request has a milestone assigned: $PR_DATA ."
38+ echo "✅ The pull request has a milestone assigned: $PR_MILESTONE ."
You can’t perform that action at this time.
0 commit comments