From 44498fed295c7d01abe7cbb1b61936b4ff1dfce3 Mon Sep 17 00:00:00 2001 From: Cyanoure Date: Sun, 15 Sep 2024 17:09:36 +0200 Subject: [PATCH] Update Actions: Source branch name --- .github/workflows/Build.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/Build.yml b/.github/workflows/Build.yml index ee0257e..2c68235 100644 --- a/.github/workflows/Build.yml +++ b/.github/workflows/Build.yml @@ -23,10 +23,15 @@ jobs: with: node-version: '22' + - name: Extract branch name + shell: bash + run: echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT + id: extract_branch + # Initialize build branch - name: Initialize build branch run: | - SOURCE_BRANCH_NAME=$(echo ${GITHUB_REF#refs/heads/}) + SOURCE_BRANCH_NAME=${{ steps.extract_branch.outputs.branch }} git config --global user.name 'Git Workflow Bot' git config --global user.email 'noreply@kozelkaricsi.hu' git fetch --all --unshallow