Update Actions: Source branch name
Some checks failed
Build and Save Artifact / build (pull_request) Failing after 7s

This commit is contained in:
Cyanoure
2024-09-15 17:09:36 +02:00
parent 8a4a11caf6
commit 44498fed29

View File

@ -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