diff --git a/.github/workflows/github_actions.yml b/.github/workflows/github_actions.yml index bee7787b5..880302da3 100644 --- a/.github/workflows/github_actions.yml +++ b/.github/workflows/github_actions.yml @@ -7,7 +7,7 @@ on: jobs: ubuntu-job: name: 'BrowserStack Test on Ubuntu' - runs-on: ubuntu-latest + runs-on: ubuntu-latest # Can be self-hosted runner also environment: name: Integrate Pull Request env: @@ -28,6 +28,9 @@ jobs: - name: 'Checkout the repository' uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.head.sha }} + fetch-depth: 2 - name: 'Setting up Ruby' uses: ruby/setup-ruby@v1 @@ -49,4 +52,4 @@ jobs: - name: 'BrowserStackLocal Stop' # Terminating the BrowserStackLocal tunnel connection uses: browserstack/github-actions/setup-local@master with: - local-testing: stop + local-testing: stop \ No newline at end of file