From 5a1d07d4749f4b1a8497a9369a11bb3a0992e39f Mon Sep 17 00:00:00 2001 From: Dominik Kapusta Date: Mon, 3 Feb 2025 19:30:58 +0100 Subject: [PATCH] Remove trailing whitespace from task URL in PR Task URL workflow --- .github/workflows/macos_pr_task_url.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/macos_pr_task_url.yml b/.github/workflows/macos_pr_task_url.yml index 256b524232..55f75edbef 100644 --- a/.github/workflows/macos_pr_task_url.yml +++ b/.github/workflows/macos_pr_task_url.yml @@ -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