Skip to content

Commit

Permalink
add error
Browse files Browse the repository at this point in the history
  • Loading branch information
withanage committed Jun 11, 2024
1 parent 267ab59 commit d0462ee
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
if: ${{ github.event_name == 'push'}}
run: |
cd ~/${{github.event.pull_request.head.repo.name || github.event.repository.name }}
git remote add user_repo https://github.com/${{ github.repository}}
git remote add user_repo
git fetch user_repo ${{ github.head_ref || github.ref_name }}
git checkout -b user_repo/${{ github.head_ref || github.ref_name }}
shell: bash
Expand All @@ -43,8 +43,8 @@ jobs:
if: ${{github.event_name == 'pull_request'}}
run: |
cd ~/${{github.event.pull_request.head.repo.name || github.event.repository.name }}
git remote add user_repo https://github.com/${{ github.event.pull_request.head.repo.name }}
git fetch user_repo ${{ github.event.pull_request.head.ref}} ${{ github.event.pull_request.head.repo.html_url}}
git remote add user_repo
github.event.pull_request.head.ref}} ${{ github.event.pull_request.head.repo.html_url}}
git checkout -b user_repo/${{ github.event.pull_request.head.ref}} ${{ github.event.pull_request.head.repo.html_url}}
shell: bash

Expand Down

0 comments on commit d0462ee

Please sign in to comment.