Skip to content

Commit

Permalink
Remove trailing whitespace from task URL in PR Task URL workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ayoy committed Feb 3, 2025
1 parent a96985f commit ef538b7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/macos_pr_task_url.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@ jobs:
env:
BODY: ${{ github.event.pull_request.body }}
run: |
task_id=$(grep -i "task/issue url.*https://app.asana.com/" <<< "$BODY" \
| sed -E 's|.*https://(.*)|\1|' \
| cut -d '/' -f 4)
task_id=$(perl -pe 's|.*?https://app.asana.com/([0-9/]+).*|\1|' <<< "$BODY" | cut -d '/' -f 3)
echo "task_id=$task_id" >> $GITHUB_OUTPUT
- name: Check App Board Project Membership
Expand Down

0 comments on commit ef538b7

Please sign in to comment.