diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 24aa944..96b026f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -53,8 +53,8 @@ jobs: - name: Fetch tags from fork if PR is from a fork if: - ${{ github.event.pull_request.head.repo.full_name != github.repository - }} + ${{ github.event_name == 'pull_request' && + github.event.pull_request.head.repo.full_name != github.repository }} run: | git remote add fork https://github.com/${{ github.event.pull_request.head.repo.full_name }}.git git fetch fork --tags