From 8832ea1b4821495564e91e5b60eff539d088b090 Mon Sep 17 00:00:00 2001 From: Jamie Hewitt Date: Wed, 18 May 2022 13:40:40 +0300 Subject: [PATCH] Checkout pull request head commit --- .github/workflows/ci.yml | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 864d0f8f..800f5a2a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -197,16 +197,7 @@ jobs: with: repository: 'oceanprotocol/ocean.js' path: 'ocean.js' - ref: main - - - name: checkout current branch - run: | - git status - branch=${GITHUB_HEAD_REF#refs/heads/} - echo ${branch} - git pull origin ${branch} - git checkout ${branch} - git status + ref: ${{ github.event.pull_request.head.sha }} - name: Create code examples file uses: actions/cache@v2