From 81baee2b1cd1443e986a4b19f7a404652c5a0ea0 Mon Sep 17 00:00:00 2001 From: TSRBerry <20988865+TSRBerry@users.noreply.github.com> Date: Thu, 15 Dec 2022 17:24:53 +0100 Subject: [PATCH] gha: Fix master branch check --- .github/workflows/Nuget-publishing.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/Nuget-publishing.yml b/.github/workflows/Nuget-publishing.yml index e0edb5f1..fe8b17de 100644 --- a/.github/workflows/Nuget-publishing.yml +++ b/.github/workflows/Nuget-publishing.yml @@ -416,7 +416,7 @@ jobs: - name: Package .NET distribution working-directory: bindings/dotnet/UnicornEngine run: | - [[ "${{ github.event.workflow_run.head_branch }}" == "master" ]] \ + [[ "${{ github.ref_name }}" == "master" ]] \ && dotnet pack -c Release \ || dotnet pack -c Release --version-suffix="${{ steps.git_short_sha.outputs.result }}"