Update Actions: Source branch name
Some checks failed
Build and Save Artifact / build (pull_request) Failing after 7s
Some checks failed
Build and Save Artifact / build (pull_request) Failing after 7s
This commit is contained in:
7
.github/workflows/Build.yml
vendored
7
.github/workflows/Build.yml
vendored
@ -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
|
||||
|
||||
Reference in New Issue
Block a user