teutat3s
0f4f8eca37
Reviewed-on: https://git.b12f.io/pub-solar/os/pulls/30 Co-authored-by: teutat3s <teutates@mailbox.org> Co-committed-by: teutat3s <teutates@mailbox.org>
13 lines
213 B
Bash
Executable file
13 lines
213 B
Bash
Executable file
#!/usr/bin/env sh
|
|
|
|
set -e
|
|
set -u
|
|
|
|
LOCAL="$DRONE_BRANCH"
|
|
[ "$LOCAL" = "main" ] && UPSTREAM=origin/devos || UPSTREAM=origin/main
|
|
|
|
git fetch --all
|
|
git checkout "$LOCAL"
|
|
git merge "$UPSTREAM"
|
|
git push origin "$LOCAL"
|