Skip to content

Commit

Permalink
Merge pull request #1611 from elementary-data/update_pylon_ticket2
Browse files Browse the repository at this point in the history
Fixed grep
  • Loading branch information
oravi authored Jul 5, 2024
2 parents 4f1334d + 0e799c7 commit 717f06f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/update_pylon_issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
"https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}" | jq -r '.body')
echo $ISSUE_BODY
# Assuming ticket ID is stored as a hidden attribute like <!-- Ticket ID: 12345 -->
pylon_ticket_id=$(echo "$ISSUE_BODY" | grep -oP '(?<=<!-- pylon-ticket-id: )\d+(?= -->)')
pylon_ticket_id=$(echo "$ISSUE_BODY" | grep -oP '(?<=<!-- pylon-ticket-id: )\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b(?= -->)')
echo $pylon_ticket_id
fi

0 comments on commit 717f06f

Please sign in to comment.