From a6ec1efd52406f3cebcc69de0eeb9a5d8268bea0 Mon Sep 17 00:00:00 2001 From: Jean-Christophe Fillion-Robin Date: Wed, 22 Oct 2025 09:08:27 -0400 Subject: [PATCH] ci: Fix main branch build fetching fork tags only for pull request --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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