mirror of
https://github.com/lostpaul/obsidian-folder-notes.git
synced 2026-07-22 07:40:24 +00:00
Update release.yaml
This commit is contained in:
parent
05fdaf5162
commit
1141ed8b48
1 changed files with 3 additions and 3 deletions
6
.github/workflows/release.yaml
vendored
6
.github/workflows/release.yaml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue