add cascade-release.sh to make releases
All checks were successful
Github Actions Demo / Explore-Gitea-Actions (push) Successful in 1m32s
All checks were successful
Github Actions Demo / Explore-Gitea-Actions (push) Successful in 1m32s
This commit is contained in:
parent
9464148db7
commit
c111c23416
15
cascade-release.sh
Executable file
15
cascade-release.sh
Executable 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"
|
Loading…
Reference in New Issue
Block a user