diff --git a/.github/workflows/review.yml b/.github/workflows/review.yml index 8f6faca..67b7de5 100644 --- a/.github/workflows/review.yml +++ b/.github/workflows/review.yml @@ -9,7 +9,7 @@ jobs: steps: - name: Fetch code run: | - git clone -b "${{github.ref_name}}" "$(echo ${{github.server_url}}/${{github.repository}}.git | sed s%://%://${{github.token}}@% )" . + git clone "$(echo ${{github.server_url}}/${{github.repository}}.git | sed s%://%://${{github.token}}@% )" . git checkout ${{ github.event.pull_request.head.sha }} git fetch origin ${{ github.event.pull_request.base.ref }} diff --git a/README.md b/README.md index f68aba9..6669946 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,7 @@ jobs: steps: - name: Fetch code run: | - git clone -b "${{github.ref_name}}" "$(echo ${{github.server_url}}/${{github.repository}}.git | sed s%://%://${{github.token}}@% )" . + git clone "$(echo ${{github.server_url}}/${{github.repository}}.git | sed s%://%://${{github.token}}@% )" . git checkout ${{ github.event.pull_request.head.sha }} git fetch origin ${{ github.event.pull_request.base.ref }}