add cascade-release.sh to make releases
All checks were successful
Github Actions Demo / Explore-Gitea-Actions (push) Successful in 1m32s

This commit is contained in:
James Andariese 2024-03-03 19:25:59 -06:00
parent 9464148db7
commit c111c23416

15
cascade-release.sh Executable file
View File

@ -0,0 +1,15 @@
#!/bin/bash
set -e
PREVPREVBRANCH="$(git checkout - && git branch --show && git checkout -)"
PREVBRANCH="$(git branch --show)"
git checkout cascade
git fetch upstream
git checkout -b cascade-"$1"
git rebase "$1"
git push -u origin cascade-"$1"
[ x"$PREVPREVBRANCH" != x ] && git checkout "$PREVPREVBRANCH"
git checkout "$PREVBRANCH"