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
ac33e80ce9
commit
6d60f5b217
1 changed files with 8 additions and 3 deletions
11
.github/workflows/release.yaml
vendored
11
.github/workflows/release.yaml
vendored
|
|
@ -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: |
|
||||
|
|
|
|||
Loading…
Reference in a new issue