Move git config
Some checks failed
Build and Save Artifact / build (push) Failing after 6s

This commit is contained in:
Cyanoure
2024-09-15 16:37:20 +02:00
parent 81baa4f3d4
commit b6cbdce51f

View File

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