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 affa801
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/macos_pr_task_url.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,13 @@ 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="$(echo "$BODY" \
# | perl -pe 's|.*?([0-9/]+)\\r\\n.*|\1|' \
# | cut -d '/' -f 4)"
task_id="$(echo "$BODY" \
| grep -i "task/issue url.*https://app.asana.com/" \
| perl -pe 's|.*?app.asana.com([0-9/]+)|\1|; chomp' \
| cut -d '/' -f 4)"
echo "task_id=$task_id" >> $GITHUB_OUTPUT
- name: Check App Board Project Membership
Expand Down

0 comments on commit affa801

Please sign in to comment.