diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 61119f76..96770037 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -36,7 +36,7 @@ jobs: cd ~/${{github.event.pull_request.head.repo.name || github.event.repository.name }} git remote add user_repo https://github.com/${{ github.repository}} git fetch user_repo - git checkout -b ${{ github.head_ref || github.ref_name }} user_repo/${{ github.head_ref || github.ref_name }} + git checkout user_repo/${{ github.head_ref || github.ref_name }} shell: bash - name: Install for pull_request @@ -45,7 +45,7 @@ jobs: cd ~/${{github.event.pull_request.head.repo.name || github.event.repository.name }} git remote add user_repo ${{ github.event.pull_request.head.repo.html_url}} git fetch user_repo ${{ github.event.pull_request.head.ref}} - git checkout -b ${{ github.event.pull_request.head.ref}} user_repo/${{ github.event.pull_request.head.ref}} + git checkout user_repo/${{ github.event.pull_request.head.ref}} shell: bash - name: "Run plugin validation"