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
2c8c54ee75
commit
c8e54037c6
1 changed files with 5 additions and 8 deletions
13
.github/workflows/release.yaml
vendored
13
.github/workflows/release.yaml
vendored
|
|
@ -45,15 +45,12 @@ jobs:
|
|||
git commit -m "Update manifest.json to version $VERSION" || echo "No changes to commit"
|
||||
git push origin main
|
||||
|
||||
# Switch back to the original branch ONLY if not 'main'
|
||||
- name: Checkout original branch (if not main)
|
||||
|
||||
- name: Ensure HEAD is at updated main commit
|
||||
run: |
|
||||
if [ "${{ env.BRANCH_NAME }}" != "main" ]; then
|
||||
git checkout "${{ env.BRANCH_NAME }}"
|
||||
git pull origin "${{ env.BRANCH_NAME }}"
|
||||
else
|
||||
echo "Already on main branch; skipping checkout."
|
||||
fi
|
||||
git fetch origin
|
||||
git checkout main
|
||||
git reset --hard origin/main
|
||||
|
||||
- name: npm build
|
||||
run: |
|
||||
|
|
|
|||
Loading…
Reference in a new issue