diff --git a/.github/workflows/build-example-ios-for-pr.yml b/.github/workflows/build-example-ios-for-pr.yml index 88109326..9c1b48b0 100644 --- a/.github/workflows/build-example-ios-for-pr.yml +++ b/.github/workflows/build-example-ios-for-pr.yml @@ -17,6 +17,15 @@ jobs: - name: Cancel previous runs uses: styfle/cancel-workflow-action@0.9.1 + - name: Checkout Pull Request + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + PR_URL="${{ github.event.issue.pull_request.url }}" + PR_NUM=${PR_URL##*/} + echo "Checking out from PR #$PR_NUM based on URL: $PR_URL" + hub pr checkout $PR_NUM + - name: Get branch of PR uses: xt0rted/pull-request-comment-branch@v3 id: comment-branch