This commit is contained in:
4
.github/workflows/Build.yml
vendored
4
.github/workflows/Build.yml
vendored
@ -27,6 +27,8 @@ jobs:
|
||||
# Initialize build branch
|
||||
- name: Initialize build branch
|
||||
run: |
|
||||
git config --global user.name 'Git Bot'
|
||||
git config --global user.email 'noreply@kozelkaricsi.hu'
|
||||
BRANCH_NAME="${GITHUB_REF_NAME}-build"
|
||||
git fetch origin $BRANCH_NAME || true # Allow failure if branch doesn't exist
|
||||
git switch $BRANCH_NAME || git switch -c $BRANCH_NAME
|
||||
@ -44,8 +46,6 @@ jobs:
|
||||
# Commit build files
|
||||
- name: Commit build files to build branch
|
||||
run: |
|
||||
git config --global user.name 'Git Bot'
|
||||
git config --global user.email 'noreply@kozelkaricsi.hu'
|
||||
git add -f dist
|
||||
git commit -am "Build" || echo "Nothing to commit"
|
||||
git push origin HEAD --force # Push to the current branch
|
||||
|
||||
Reference in New Issue
Block a user