mirror of
https://github.com/Dasemu/Transcriptarr.git
synced 2026-11-26 15:06:06 +00:00
fix(ci): skip merge-back step when development branch does not exist
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
3ebecbe62a
commit
f9b92ed256
1 file changed
+4
@@ -63,6 +63,10 @@ jobs:
|
||||
- name: Merge main back into development
|
||||
if: github.ref_name == 'main'
|
||||
run: |
|
||||
if ! git ls-remote --exit-code --heads origin development >/dev/null; then
|
||||
echo "No development branch on the remote; nothing to merge back."
|
||||
exit 0
|
||||
fi
|
||||
git fetch origin development
|
||||
git checkout development
|
||||
git merge --no-edit origin/main
|
||||
|
||||
Reference in new issue
Block a user