add cascade-release.sh to make releases
All checks were successful
Github Actions Demo / Explore-Gitea-Actions (push) Successful in 1m37s
All checks were successful
Github Actions Demo / Explore-Gitea-Actions (push) Successful in 1m37s
This commit is contained in:
parent
4e69d12907
commit
cf080607a6
14
cascade-release.sh
Executable file
14
cascade-release.sh
Executable file
|
@ -0,0 +1,14 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
if [ x"$(git branch --show)" != x"cascade" ];then
|
||||||
|
echo "this cannot be run on any branches other than cascade"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
git fetch upstream
|
||||||
|
git checkout -b cascade-"$1"
|
||||||
|
git rebase "$1" || (git checkout cascade && git branch -D cascade-"$1";exit 1)
|
||||||
|
git push -u origin cascade-"$1"
|
||||||
|
git checkout cascade
|
Loading…
Reference in New Issue
Block a user