From 848875ad7dbb1b14a6c83e603a64c8a236e0b2f2 Mon Sep 17 00:00:00 2001
From: Serban Iorga <serban@parity.io>
Date: Wed, 12 Feb 2025 18:33:26 +0200
Subject: [PATCH] Fix build-linux-substrate (#7552)

Fix `build-linux-substrate` when opening PRs from a `polkadot-sdk` fork

Failed CI job example:
https://github.com/paritytech/polkadot-sdk/actions/runs/13284026730/job/37088673786?pr=7548
---
 .github/workflows/build-publish-images.yml | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/.github/workflows/build-publish-images.yml b/.github/workflows/build-publish-images.yml
index 5ee02151f8d..0bf2bded0b0 100644
--- a/.github/workflows/build-publish-images.yml
+++ b/.github/workflows/build-publish-images.yml
@@ -234,10 +234,6 @@ jobs:
     steps:
       - name: Checkout
         uses: actions/checkout@v4
-        with:
-          # tldr: we need to checkout the branch HEAD explicitly because of our dynamic versioning approach while building the substrate binary
-          # see https://github.com/paritytech/ci_cd/issues/682#issuecomment-1340953589
-          ref: ${{ github.head_ref || github.ref_name }}
       - name: build
         run: |
           mkdir -p ./artifacts/substrate/
-- 
GitLab