Skip to content

Commit 67da21f

Browse files
Update dev-pr-label.yml
Signed-off-by: Benjamin Swanepoel <49689582+superbrobenji@users.noreply.github.com>
1 parent 9bb12f9 commit 67da21f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/dev-pr-label.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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."

0 commit comments

Comments
 (0)