Update release.yaml

This commit is contained in:
Lost Paul 2025-06-23 14:20:03 +02:00 committed by GitHub
parent ac33e80ce9
commit 6d60f5b217
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -43,10 +43,15 @@ jobs:
git push origin main
# Switch back to the branch that triggered the workflow
- name: Checkout original branch
- name: Checkout original branch (if not main)
run: |
git checkout ${{ env.BRANCH_NAME }}
git pull origin ${{ env.BRANCH_NAME }}
if [ "${BRANCH_NAME}" != "main" ]; then
git checkout "${BRANCH_NAME}"
git pull origin "${BRANCH_NAME}"
else
echo "Already on main branch; no need to checkout."
fi
- name: npm build
run: |