From c6096ad3b87a14fc212208a8b7d995ccf3d80e70 Mon Sep 17 00:00:00 2001
From: jgromes <jan.gromes@gmail.com>
Date: Thu, 23 Jan 2025 19:04:06 +0100
Subject: [PATCH] [CI] Fix steps order

---
 .github/workflows/main.yml | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index f8f0b4ef6..7ee70772a 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -185,6 +185,10 @@ jobs:
           cd $PWD/extras/test/ci
           ./build_examples.sh ${{ matrix.id }} "${{ steps.prep.outputs.skip-pattern }}" ${{ steps.prep.outputs.options }}
       
+      - name: Extract short commit hash
+        id: short-hash
+        run: echo "::set-output name=short_sha::$(git rev-parse --short HEAD)"
+      
       - name: Parse sizes
         if: ${{ env.run-build == 'true' }}
         run:
@@ -193,10 +197,6 @@ jobs:
           ./parse_size.sh ${{ matrix.id }}
           cat size_${{ steps.short-hash.outputs.short_sha }}_${{ steps.split.outputs._0 }}-${{ steps.split.outputs._1 }}-${{ steps.split.outputs._2 }}.csv
       
-      - name: Extract short commit hash
-        id: short-hash
-        run: echo "::set-output name=short_sha::$(git rev-parse --short HEAD)"
-      
       - name: Upload size report as artifact
         uses: actions/upload-artifact@v4
         with: