From 72e4c2e2c80ca65dab87798dcd8a5269ac6ff907 Mon Sep 17 00:00:00 2001 From: Pari Work Temp Date: Thu, 15 Aug 2024 10:21:34 -0500 Subject: [PATCH] regex to get PR number --- .github/workflows/mobile.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/mobile.yml b/.github/workflows/mobile.yml index 259f83c3e..000ecda1e 100644 --- a/.github/workflows/mobile.yml +++ b/.github/workflows/mobile.yml @@ -98,7 +98,7 @@ jobs: - name: Update EAS Config working-directory: ./my_project/mobile run: | - PR_NUMBER=${{ github.event.number }} + PR_NUMBER=$(echo "$url" | grep -oP '(?<=pr-)\d+') jq --arg pr_number "$PR_NUMBER" '.build["review_" + $pr_number] = { "developmentClient": true, "distribution": "internal",