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