Actions: Merge if branch exists
All checks were successful
Build and Save Artifact / build (push) Successful in 11s

This commit is contained in:
Cyanoure
2024-09-15 16:25:33 +02:00
parent bdd36603df
commit cbcdb66417

View File

@ -24,13 +24,13 @@ jobs:
with: with:
node-version: '22' node-version: '22'
# Delete existing build branch # Initialize build branch
- name: Delete existing build branch - name: Initialize build branch
run: git branch -d ${GITHUB_REF_NAME}-build || echo "Build branch not found" run: |
git branch ${GITHUB_REF_NAME}-build || echo "Build branch already exists"
# Create and switch to build branch git switch ${GITHUB_REF_NAME}-build
- name: Create and switch to build branch git merge ${GITHUB_REF_NAME}
run: git branch ${GITHUB_REF_NAME}-build && git switch ${GITHUB_REF_NAME}-build rm -rf dist
# Install dependencies # Install dependencies
- name: Install dependencies - name: Install dependencies