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 5a1d07d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/macos_pr_task_url.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,18 @@ jobs:
env:
BODY: ${{ github.event.pull_request.body }}
run: |
# task_id="$(echo "$BODY" \
# | perl -pe 's|.*?([0-9/]+)\\r\\n.*|\1|' \
# | cut -d '/' -f 4)"
task_id=$(grep -i "task/issue url.*https://app.asana.com/" <<< "$BODY" \
| sed -E 's|.*https://(.*)|\1|' \
| cut -d '/' -f 4)
echo "task_id=$task_id" >> $GITHUB_OUTPUT
# 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//[^0-9.]/}" >> $GITHUB_OUTPUT
- name: Check App Board Project Membership
id: check-board-membership
Expand Down

0 comments on commit 5a1d07d

Please sign in to comment.