Update release.yaml

This commit is contained in:
Lost Paul 2025-06-23 14:23:59 +02:00 committed by GitHub
parent 05fdaf5162
commit 1141ed8b48
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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