Skip to content

Commit 8e044aa

Browse files
committed
⚙️ Chore: Update build-example-ios-for-pr Workflow
1 parent af664ae commit 8e044aa

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/build-example-ios-for-pr.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,15 @@ jobs:
1717
- name: Cancel previous runs
1818
uses: styfle/cancel-workflow-action@0.9.1
1919

20+
- name: Checkout Pull Request
21+
env:
22+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23+
run: |
24+
PR_URL="${{ github.event.issue.pull_request.url }}"
25+
PR_NUM=${PR_URL##*/}
26+
echo "Checking out from PR #$PR_NUM based on URL: $PR_URL"
27+
hub pr checkout $PR_NUM
28+
2029
- name: Get branch of PR
2130
uses: xt0rted/pull-request-comment-branch@v3
2231
id: comment-branch

0 commit comments

Comments
 (0)